Visual Studio Code reports errors in Parcel project with TypeScript and React #9163
Unanswered
eugene-khyst
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There error is because |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Parcel 2.9.3 to build a webapp in TypeScript + React.
According to the docs https://parceljs.org/recipes/react/#jsx:
parcel serve src/index.html
andparcel build src/index.html
works without errors.But without adding the
tsconfig.json
, the Visual Studio Code reports errors intsx
files. For example,App.tsx
When I add the following
tsconfig.json
, Visual Studio Code stops reporting this error:But with such
tsconfig.json
I get the new error when defining a web worker:Then
tsconfig.json
becomesIs creating such
tsconfig.json
the correct way of integrating Parcel with the Visual Studio Code for TypeScript + React project? What else should be added to thetsconfig.json
?Beta Was this translation helpful? Give feedback.
All reactions