spaces/special characters in complete project path cause `ERR_INVALID_URL_SCHEME` vite error
See original GitHub issueEnvironment
- Operating System:
Windows_NT
- Node Version:
v16.16.0
- Nuxt Version:
3.0.0
- Nitro Version:
1.0.0
- Package Manager:
yarn@1.22.19
- Builder:
vite
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Reproduction
Describe the bug
Error when I use run dev
Additional context
No response
Logs
500
[vite-node] [ERR_INVALID_URL_SCHEME] /node_modules/ufo/dist/index.mjs
at /node_modules/ufo/dist/index.mjs
Issue Analytics
- State:
- Created 10 months ago
- Reactions:19
- Comments:26 (7 by maintainers)
Top Results From Across the Web
Troubleshooting - Vite
Error : Cannot find module 'C:\foo\bar&baz\vite\bin\vite.js' #. The path to your project folder may include & , which doesn't work with npm on...
Read more >VS unable to open project with some special characters in the ...
Some projects in the solution open fine, ASP.NET MVC projects fail to load with differening errors about missing files regarding targets. Unit Testing...
Read more >Prevent file import errors caused by special characters or ...
When you import a file of contacts, we recognize characters that are common to email addresses, such as: Capital letters (A - Z) ......
Read more >Do not allow special characters in new project names - GitLab
An error occurred while retrieving approval data for this merge request. Do not allow special characters in new project names.
Read more >Using URL encoding to handle special characters in a ...
The <space> character needs to be encoded because it is not a valid URL character. Also, some characters, such as "~" might not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should be resolved in ufo v1.0.1. which you can get with
npx nuxi upgrade
.Let me know if not and I’ll reopen.
This seems to be an issue when having “special characters” that have to be URL-encoded in the path. Could be umlauts like öäü, spaces and more.
@danielroe Could you add that to the issue?
Slightly related: #8706