-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cannot preview after nuxt build #117
Comments
@krank56 would you be able to provide a simple reproduction where this error occurs with the build? I've been unable to replicate it on the demo app, you can have a look at my config below.
|
The same error on plain nuxt-graphql-client-demo installation
the same configurations except Operating System - Windows and yarn v 1.22.19
steps to reproduce
catch error:
|
@krank56 @denis-gorin Thank you for raising this issue and providing the relevant details. This appears to be an upstream bug with the nuxt 3 production server bundle on windows. We're looking into it and will address this as soon as possible. |
Hello, it seems that using Nuxt
UpdateSeems that is a common problem when bundling Nuxt 3 under Windows OSes. I've managed to solve this issue using WSL and Docker WSL
|
@PrinceEntree8 Indeed, this issue solely exists in the windows environment due to the way bundling occurs in current versions of Nuxt 3. I'll continue to keep a close eye on this one and update the status here accordingly. Hopefully though, we can have this resolved and working properly on Windows in the near future. |
Hello,
I believe this issue is caused by import of |
Any news on this ? I'm having the issue deploying to WP Engine Atlas. |
Just thought I'd mention that I'm seeing this error on macOS also. Let me know if I can provide any supporting information, I'd be happy to help. |
Hello @maximilliangeorge, I personally use both platforms (MacOS and Windows) and I never encounter it. |
1 similar comment
Hello @maximilliangeorge, I personally use both platforms (MacOS and Windows) and I never encounter it. |
Sure. Build works fine, but when I try running the server as per the output The workaround mentioned above allows me to run the server. My system:
`` Error [ERR_MODULE_NOT_FOUND]: Cannot find module '***/nuxt/server/output/server/node_modules/graphql/language/parser' imported from ***/nuxt/server/output/server/index.mjs
|
I get this error when trying to run the bundled nuxt app
[nuxt] [request error] Cannot find module '[mypath]\Frontend\.output\server\node_modules\graphql\language\parser' imported from [mypath]\Frontend\.output\server\chunks\server.mjsDid you mean to import graphql/language/parser.js? at new NodeError (node:internal/errors:372:5) at finalizeResolution (node:internal/modules/esm/resolve:437:11) at moduleResolve (node:internal/modules/esm/resolve:1009:10) at defaultResolve (node:internal/modules/esm/resolve:1218:11) at ESMLoader.resolve (node:internal/modules/esm/loader:580:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40) at link (node:internal/modules/esm/module_job:78:36)
I did follow the Quick start guide, yarn dev works fine the preview throws the error above
The text was updated successfully, but these errors were encountered: