Wrong paths on Windows
See original GitHub issueHello, i was trying to import the module inside my project but after importing the module i always seem to be getting the following error.
This error happens in my own project but also when i setup a completely empty nuxt project with nothing in it.
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: ["nuxt-security"],
});
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "3.0.0-rc.12"
},
"dependencies": {
"nuxt-security": "^0.5.0"
}
}
Issue Analytics
- State:
- Created a year ago
- Comments:33 (21 by maintainers)
Top Results From Across the Web
User files in the wrong path - Microsoft Community
Hi everyone, I just recently completed my PC and wanted to set it up. Windows is booting on an SSD but data is...
Read more >11 Ways to Fix "The System Cannot Find The Path Specified ...
11 Ways to Fix "The System Cannot Find The Path Specified" Error on Windows · 1. Run Command Prompt as an Administrator ·...
Read more >"wrong path" after running command via address bar in explorer
run command (e.g cmd); place cursor into adress bar -> path will point to C:\Windows\System32\cmd.exe.
Read more >core: 'copy path' returns wrong path for windows #8098 - GitHub
Following #7934, the copy path command does not produce the correct path for Windows. The directory separator and drive casing are incorrect due ......
Read more >Windows Shell API - Wrong path while iterating through a folder
This PC and c: will be gibberish but you should be able to recognize folders and files. This way you can verify that...
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
I believe this is an issue on the nitro side as other handlers are working correctly, only the one that is being pushed to nitro plugins array is failing.
For all users facing the problem. When you set
hidePoweredBy
tofalse
in your nuxt.config.ts your project will work fine and you can use it as a workaround now until a proper fix will be published. It will disable one of the middlewares (that is not as crucial as other middlewares) and will make your app work corectly on Windows.CC @maxime-ducoroy @mikeschepers4 @luabraggion
@mikeschepers4 I will release the new version in the upcoming days with this fix and few other smaller functionalities.