-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
When navigating to a URL with a query parameter that contains a .scss, the vite development server will fail
Reproduction
https://stackblitz.com/edit/vitejs-vite-yduu1r?file=package.json
Start the service and open https://vitejs-vite-yduu1r--3000.local.webcontainer.io?url=test.com%2Fa.scss
System Info
System:
OS: macOS 12.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 863.88 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
Yarn: 1.22.5 - ~/.yarn/bin/yarn
npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm
npmPackages:
@vitejs/plugin-legacy: ^1.6.4 => 1.7.0
@vitejs/plugin-vue: ^2.1.0 => 2.2.0
vite: ^2.7.13 => 2.8.0
Used Package Manager
yarn
Logs
Failed to resolve entry for package "/home/projects/vitejs-vite-yduu1r/". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "/home/projects/vitejs-vite-yduu1r/". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:29519:11)
at resolvePackageEntry (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:29515:9)
at tryResolveFile (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:29245:38)
at tryFsResolve (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:29227:16)
at Context.resolveId (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:29080:28)
at Object.resolveId (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:38250:55)
at async ModuleGraph.resolveUrl (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:53476:26)
at async ModuleGraph.getModuleByUrl (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:53361:23)
at async doTransform (/home/projects/vitejs-vite-yduu1r/node_modules/vite/dist/node/chunks/dep-1412e872.js:52929:20
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
olejorgenb
Metadata
Metadata
Assignees
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)