index.jsx
import React from 'react'
import ReactDOM from 'react-dom'
import Home from "./home";
const x:number = "aaa"
const x:number = "aaa"
const x:number = "aaa"
ReactDOM.render(<Home/>, document.getElementById('root'))
The issue causing the build to fail is multiple identifiers with the same name in JavaScript and an invalid type conversion from string to number in TypeScript.
Although the current parcel compilation is successful, how can I ensure that it fails in such cases?
For a minimal working project example, visit: https://github.com/stavalfi/learning-parcel-js