elie222 / inbox-zero

Open source email app to reach inbox zero fast.
https://www.getinboxzero.com
GNU Affero General Public License v3.0
2.33k stars 229 forks source link

Fix : jsx parsing issue in VS Code for *.tsx files #21

Closed sharma-shanu closed 9 months ago

sharma-shanu commented 9 months ago

Screenshot 2023-11-24 at 2 27 18 AM

20

vercel[bot] commented 9 months ago

Someone is attempting to deploy a commit to the Inbox Zero Team on Vercel.

A member of the Team first needs to authorize it.

elie222 commented 9 months ago

Weird. I use VS Code too. You did pnpm i and also tried Restart Typescript in VS Code and you still see this error?

sharma-shanu commented 9 months ago

Yes @elie222, the issue is still there after installing dependencies and restarting typescript.

elie222 commented 9 months ago

I see we have "jsx": "preserve", in nextjs.json. And the web tsconfig.json has "extends": "tsconfig/nextjs.json",. I'm going to take a look at why your VS Code isn't respecting that.

elie222 commented 9 months ago

Did you pnpm i at the root? Do you see any errors in VS Code output that it can't read the tsconfig?

sharma-shanu commented 9 months ago

@elie222, I didn't see any error.

Removed my node_modules folder and ran pnpm install again, and it started working.

I think we can close this PR now.