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

"Error when evaluating SSR module" when running vocs dev / build #171

Closed
Sam-Scolari opened this issue May 23, 2024 · 2 comments
Closed

Comments

@Sam-Scolari
Copy link

Sam-Scolari commented May 23, 2024

After creating a fresh project through npm init vocs and installing the packages, I get the following error

[vite] Error when evaluating SSR module C:\Users\samsc\Documents\GitHub\emotes\node_modules\vocs\_lib\app\index.server.js: failed to import "/@fs/C:/Users/samsc/Documents/GitHub/emotes/node_modules/vocs/_lib/app/routes.js"
|- Error: Cannot find module 'C:UserssamscDocumentsGitHubemotes
ode_modules
ocs_lib
ite.vocs        heme.css' imported from 'virtual:styles'
    at nodeImport (file:///C:/Users/samsc/Documents/GitHub/emotes/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55089:25)
    at ssrImport (file:///C:/Users/samsc/Documents/GitHub/emotes/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:54998:30)
    at eval (virtual:styles:3:50)
    at instantiateModule (file:///C:/Users/samsc/Documents/GitHub/emotes/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55058:15)

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: Cannot find module 'C:UserssamscDocumentsGitHubemotes
ode_modules
ocs_lib
ite.vocs        heme.css' imported from 'virtual:styles'
    at nodeImport (file:///C:/Users/samsc/Documents/GitHub/emotes/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55089:25)
    at ssrImport (file:///C:/Users/samsc/Documents/GitHub/emotes/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:54998:30)
    at eval (virtual:styles:3:50)
    at instantiateModule (file:///C:/Users/samsc/Documents/GitHub/emotes/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55058:15) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v21.3.0
error: script "dev" exited with code 1

I have back tested to version 1.0.0-alpha.40 and in both Node and Bun runtimes on Windows with the same issue

@nordowl
Copy link

nordowl commented Jul 7, 2024

Did you find a fix for this?
Edit: Apparently there is a fix for it, but the PR hasn't been reviewed yet. #128

@jxom
Copy link
Member

jxom commented Oct 4, 2024

dupe of #52

@jxom jxom closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants