nuxtrdev / nuxtr-vscode

An extension offering commands and tools to make your experience with Nuxt more pleasant.
https://marketplace.visualstudio.com/items?itemName=Nuxtr.nuxtr-vscode
326 stars 13 forks source link

[Bug]: Failed to locate Nuxt Devtools, install it? #20

Closed angelhdzmultimedia closed 1 year ago

angelhdzmultimedia commented 1 year ago

Environment

OS: Windows 11 Home 10.0.22621 Build 22621 Node: 18.15.0 VSCode: 1.80.0 Nuxtr: 0.1.4 (and 0.1.3) nuxt: 3.6.2 @nuxt/devtools: 0.3.1 pnpm: 8.6.5

What went wrong?

image

image

Attempts to solve it

No matter what I try, even though devtools is enabled and working in the browser, the icon is always red and I get the notification in every workspace reload.

How to reproduce it?

adhamfarrag commented 1 year ago

Hello @angelhdzmultimedia,

Can you share the console errors when you startup your project? VSCode Console can be opened from Help > Toggle Developer Tools.

angelhdzmultimedia commented 1 year ago

Hello @angelhdzmultimedia,

Can you share the console errors when you startup your project? VSCode Console can be opened from Help > Toggle Developer Tools.

image

adhamfarrag commented 1 year ago

This means all terminal commands don't work on Windows.. Will fix this issue as soon as I can.

lihbr commented 1 year ago

image Logs on my end

RihanArfan commented 1 year ago

Also getting this problem using pnpm (with hoisting) on GitHub Codespaces (Linux)

Details

Nuxi 3.6.2 - Operating System: Linux - Node Version: v19.9.0 - Nuxt Version: 3.6.2 - Nitro Version: 2.5.2 - Package Manager: pnpm@8.6.6 - Builder: vite - User Config: modules, runtimeConfig, experimental, typescript, devtools - Runtime Modules: @nuxthq/ui@2.5.0, @vueuse/nuxt@10.2.1 - Build Modules: - ```json] // removed extra deps for clarity { "name": "nuxt-app", "private": true, "scripts": { "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" }, "devDependencies": { "@nuxt/devtools": "^0.6.7", "@types/node": "^20.4.1", "nuxt": "^3.6.2" } } ```

image

EDIT: The scaffold/create commands seem to work despite the error though

adhamfarrag commented 1 year ago

@lihbr Thanks Lucie. :)

@RihanArfan They should not affect each other. And on Linux, you should get the error if installation fails because of sudo permissions. Installing Nuxt Devtools globally manually should fix it for you.

angelhdzmultimedia commented 1 year ago

Also getting this problem using pnpm (with hoisting) on GitHub Codespaces (Linux)

Details image EDIT: The scaffold/create commands seem to work despite the error though

Yes I confirm. Scaffolding works great.

adhamfarrag commented 1 year ago

@angelhdzmultimedia @RihanArfan Fixed in Version 0.1.7. Please update. Thanks @lihbr for helping me with this one. :)