#vite build Parse error

1 messages · Page 1 of 1 (latest)

wanton mountain
#

Hi, I'm getting a Parse error @:1:1 on my index.jsx. This is a react project and running in dev mode works fine.

Here's the output:

vite v3.2.4 building for production... ✓ 2 modules transformed. [vite:build-import-analysis] Parse error @:1:1 file: D:/Users/falonso/Documents/Projects/react/keystone-react-material-ui/src/index.jsx error during build: Error: Parse error @:1:1 at parse$b (file:///D:/Users/falonso/Documents/Projects/react/keystone-react-material-ui/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:32642:355) at Object.transform (file:///D:/Users/falonso/Documents/Projects/react/keystone-react-material-ui/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:42081:27) at processTicksAndRejections (node:internal/process/task_queues:96:5) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Any help greatly appreciated!

obtuse quiver
#

i am seeing exactly the same thing - zero detail about the error, and of course it's a perfectly normal file:

[vite:build-import-analysis] Parse error @:1:1
file: /sc/frontend/src/index-vite.js