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
visiting dev server url with query string ending with '.js' will cause vite internal error
[vite] Internal server error: Failed to resolve entry for package "/Users/xxx/vite-demo/". The package may have incorrect main/module/exports specified in its package.json.
This issue has been locked since it has been closed for more than 14 days.
If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion.
Describe the bug
visiting dev server url with query string ending with '.js' will cause vite internal error
[vite] Internal server error: Failed to resolve entry for package "/Users/xxx/vite-demo/". The package may have incorrect main/module/exports specified in its package.json.
Reproduction
https://github.com/Claiyre/vite-bug
reproducing steps:
npm install
npm run dev
http://localhost:3000/?test=aa.js
(note whether the port number is correct!)System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
The text was updated successfully, but these errors were encountered: