You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using vite to make an online tool, which is installed globally through npm, and the default is "/usr/local/lib/node_modules" on my mac.
But when I start "npm run dev", the page can be opened normally, but the console has an unbelievable error "Uncaught SyntaxError: The requested module'/node_modules/", how can I solve it?
Passing "vite.config.js exclude" still doesn't work, and different errors appear endlessly. But my project can run normally in other local directories. I know that the directory "/usr/local/lib/" is very special, but how can I solve it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using vite to make an online tool, which is installed globally through npm, and the default is "/usr/local/lib/node_modules" on my mac.
But when I start "npm run dev", the page can be opened normally, but the console has an unbelievable error "Uncaught SyntaxError: The requested module'/node_modules/", how can I solve it?
Passing "vite.config.js exclude" still doesn't work, and different errors appear endlessly. But my project can run normally in other local directories. I know that the directory "/usr/local/lib/" is very special, but how can I solve it?
Beta Was this translation helpful? Give feedback.
All reactions