Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue about visiting dev server url with query string ending with '.js' #3568

Closed
Claiyre opened this issue May 27, 2021 · 1 comment · May be fixed by jay-Anonymous/vite#2
Closed

issue about visiting dev server url with query string ending with '.js' #3568

Claiyre opened this issue May 27, 2021 · 1 comment · May be fixed by jay-Anonymous/vite#2
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@Claiyre
Copy link
Contributor

Claiyre commented May 27, 2021

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:

  1. npm install
  2. npm run dev
  3. visit http://localhost:3000/?test=aa.js(note whether the port number is correct!)
  4. internal error in terminal

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 497.07 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.16.1 - ~/.nvm/versions/node/v14.16.1/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.12 - ~/.nvm/versions/node/v14.16.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 90.0.4430.212
    Firefox: 88.0.1
    Safari: 14.0.3
  npmPackages:
    @vitejs/plugin-vue: ^1.2.2 => 1.2.2 
    vite: ^2.3.4 => 2.3.4 

Used package manager: npm

Claiyre pushed a commit to Claiyre/vite that referenced this issue May 28, 2021
Claiyre pushed a commit to Claiyre/vite that referenced this issue May 28, 2021
@sodatea sodatea added has pr p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels May 28, 2021
antfu pushed a commit that referenced this issue May 29, 2021
Co-authored-by: mayingying1 <mayingying1@corp.netease.com>
@Claiyre Claiyre closed this as completed May 31, 2021
ygj6 pushed a commit to ygj6/vite that referenced this issue Jun 1, 2021
Co-authored-by: mayingying1 <mayingying1@corp.netease.com>
@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants