Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong paths on Windows

See original GitHub issue

Hello, i was trying to import the module inside my project but after importing the module i always seem to be getting the following error. image

This error happens in my own project but also when i setup a completely empty nuxt project with nothing in it.

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:open
  • Created a year ago
  • Comments:33 (21 by maintainers)

github_iconTop GitHub Comments

Baroshemcommented, Nov 14, 2022

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 to false 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

Baroshemcommented, Nov 2, 2022

@mikeschepers4 I will release the new version in the upcoming days with this fix and few other smaller functionalities.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found