Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue Component Preview doesn't work on Windows if a path has spaces in it #7

Closed
Nicate opened this issue Sep 13, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@Nicate
Copy link

Nicate commented Sep 13, 2022

PS C:\Path With Spaces In It> cd c:\Path With Spaces In It\source
Set-Location : A positional parameter cannot be found that accepts argument 'With'.
+ cd c:\Path With Spaces In It ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-Location], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
 
PS C:\Path With Spaces In It> node "c:\\Users\\me\\.vscode\\extensions\\vue.volar-0.40.13-win32-x64\\dist\\preview-bin\\vite.js" --port=3333
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'vite/package.json'
Require stack:
- c:\Users\me\.vscode\extensions\vue.volar-0.40.13-win32-x64\dist\preview-bin\vite.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.resolve (node:internal/modules/cjs/helpers:108:19)
    at Object.<anonymous> (c:\Users\me\.vscode\extensions\vue.volar-0.40.13-win32-x64\dist\preview-bin\vite.js:7:29)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'c:\\Users\\me\\.vscode\\extensions\\vue.volar-0.40.13-win32-x64\\dist\\preview-bin\\vite.js'
  ]
}

This results in large amounts of terminated terminals.
terminals

Is there a way to turn this plugin off?

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Sep 13, 2022
@johnsoncodehk
Copy link
Owner

johnsoncodehk commented Sep 13, 2022

Is there a way to turn this plugin off?

You can close the component preview tab, close all preview terminals and reload vscode window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants