RicardoValdovinos / vite-react-boilerplate

A production ready, scalable starter template for Vite + React
MIT License
684 stars 91 forks source link

ts error #4

Closed Chen-913 closed 1 year ago

Chen-913 commented 1 year ago

Some configurations seem to have errors image I followed the steps of README to install the dependency package, but when I opened Home.tsx, I received a syntax error for ts image I changed the configuration to 'Node', and after that, there were no syntax errors image Is my TS version too low? I haven't installed any TS except for the project

RicardoValdovinos commented 1 year ago

Some configurations seem to have errors image I followed the steps of README to install the dependency package, but when I opened Home.tsx, I received a syntax error for ts image I changed the configuration to 'Node', and after that, there were no syntax errors image Is my TS version too low? I haven't installed any TS except for the project

That's strange. I just followed the README in an attempt to duplicate the error but didn't encounter it.

Sometimes VSCode can be a bit weird so it wouldn't surprise me if the suggestion in this stack overflow answer did the trick https://stackoverflow.com/a/76065201

Try it out and let me know how it goes. If that doesn't work we can do some more digging.

Chen-913 commented 1 year ago

Great! It solved me. The latest version of ts used by vscode is currently version 4, which I switched in order to use the version of the workspace

RicardoValdovinos commented 1 year ago

Awesome! Glad to hear it!