wallabyjs / quokka

Repository for Quokka.js questions and issues
https://quokkajs.com
1.18k stars 31 forks source link

Command 'Quokka.js: New File' resulted in an error command 'quokka.createFile' not found #978

Closed brian-captain-crosby closed 7 hours ago

brian-captain-crosby commented 7 hours ago

Issue description or question

Is this issue related to Quokka not outputting the expected results of your code?: No

I'm not able to start Quokka. The developer tools show error:

Activating extension 'WallabyJs.quokka-vscode' failed: Cannot find module 'ts-node' Require stack:

  • /Users/bcrosby/.vscode/extensions/wallabyjs.quokka-vscode-1.0.668/index.js
  • /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js. $onExtensionActivationError @ mainThreadExtensionService.ts:107 S @ rpcProtocol.ts:458 Q @ rpcProtocol.ts:443 M @ rpcProtocol.ts:373 L @ rpcProtocol.ts:299 (anonymous) @ rpcProtocol.ts:161 B @ event.ts:1243 fire @ event.ts:1274 fire @ ipc.net.ts:652 l.onmessage @ localProcessExtensionHost.ts:378

I'm using nvm, here's my config:

{
  "autoLog": true,
  "showSingleInlineValue": false,
  "pro": true,
  "node": "~/.nvm/current/bin/node"
}

node version is v20.15.1

I tried:

changing my node in the confib to /Users/bcrosby/.nvm/versions/node/v20.15.1/bin/node which is what I get when I run which node and restarted VS Code but it didn't help

I tried:

I've tried:

installing ts-node globally npm install -g ts-node

but that didn't help.

Wallaby.JS is installed and working fine:

(Extension Host] [Wallaby Console] VS Code extension v1.0.396|

Code editor version

Visual Studio Code Version: 1.95.3 (Universal)

OS name and version

OSX - 15.1 (24B83)

ArtemGovorov commented 7 hours ago

Can you please open your VS Code settings JSON file and check that you don't have quokka.debug setting specified in there?

brian-captain-crosby commented 7 hours ago

yay it works again 🎉. Thank you!! 🙇