Install dependencies:
npm install
Running the app works as expected:
npm run dev
Output in the browser:
But linting the project gives the following error:
npm run lint
Linting the equivalent code in a JSX file works fine:
npm run lint:jsx
However, linting works after applying a very hacky patch to the TypeScript compiler:
npx patch-package
num run lint