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
When navigating to a URL with a query parameter that contains a %0A, the vite development server will fail
Reproduction
Start a local vite project and navigate to the following URL. I've been able to reproduce this with two separate projects running the latest version of vite. http://localhost:3000/?cat=%0A
3:10:34pm[vite]Internalservererror: Failedtoresolveentryforpackage "C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\". The package may have incorrect main/module/exports specified in its package.json.
at resolvePackageEntry (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:32615:15)
at tryResolveFile (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:32398:24)
at tryFsResolve (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:32375:16)
at Context.resolveId (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:32250:28)
at Object.resolveId (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:44708:55)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ModuleGraph.resolveUrl (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:59608:36)
at async ModuleGraph.getModuleByUrl (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:59495:23)
at async transformRequest (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:58955:20)
at async viteTransformMiddleware (C:\Users\Stefnotch\Documents\GitHub\Tools\starboard-editor\node_modules\vite\dist\node\chunks\dep-bc228bbb.js:59167:32)
Before submitting the issue, please make sure you do the following
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Provide a description in this issue that describes the bug.
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/vue-next instead.
Describe the bug
When navigating to a URL with a query parameter that contains a
%0A
, the vite development server will failReproduction
Start a local vite project and navigate to the following URL. I've been able to reproduce this with two separate projects running the latest version of vite.
http://localhost:3000/?cat=%0A
Repository
https://github.com/stefnotch/starboard-editor
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager:
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: