#Running scrimba code on local environment

5 messages · Page 1 of 1 (latest)

cunning sequoia
#

Steps to reproduce

  1. go to scrim https://scrimba.com/frontend-path-c0j/~0vm
  2. download as zip and extract on local machine
  3. open in vs code
  4. npm install, npm start

Error:
[vite] Pre-transform error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.

#

Could someone tell me what am i doing wrong?

cunning sequoia
#

strange, but renaming index.js to index.tsx resolved the problem, anyone knows why?

civic sphinx