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 after nuxt create app #929

Open
raresabr opened this issue Feb 18, 2022 · 3 comments
Open

Error after nuxt create app #929

raresabr opened this issue Feb 18, 2022 · 3 comments
Labels

Comments

@raresabr
Copy link

after running nuxt command in the terminal this following output happens.

 ERROR  Failed to compile with 1 errors                                                                                                                                                                                                                                                          friendly-errors 14:52:55


 ERROR  in ./.nuxt/client.js                                                                                                                                                                                                                                                                     friendly-errors 14:52:55

Module build failed (from ./node_modules/babel-loader/lib/index.js):                                                                                                                                                                                                                             friendly-errors 14:52:55
Error: [BABEL]: Cannot find module '/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/'
Require stack:
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/files/module-types.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/files/configuration.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/files/index.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/index.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/babel-loader/lib/index.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/loader-runner/lib/loadLoader.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/loader-runner/lib/LoaderRunner.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/webpack/lib/NormalModule.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/webpack/lib/NormalModuleFactory.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/webpack/lib/Compiler.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/webpack/lib/webpack.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@nuxt/webpack/dist/webpack.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@nuxt/builder/dist/builder.js
- /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/index.js (While processing: /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at loadCjsDefault (/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/files/module-types.js:89:18)
    at loadCjsOrMjsDefault (/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/files/module-types.js:61:16)
    at loadCjsOrMjsDefault.next (<anonymous>)
    at requireModule (/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/files/plugins.js:264:44)
    at requireModule.next (<anonymous>)
    at loadPreset (/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/files/plugins.js:102:24)
    at loadPreset.next (<anonymous>)
    at createDescriptor (/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/@babel/core/lib/config/config-descriptors.js:187:16)
    at createDescriptor.next (<anonymous>)
    at step (/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/gensync/index.js:261:32)
    at /mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/gensync/index.js:273:13
    at async.call.result.err.err (/mnt/6f925fd4-2e87-4070-86d1-59c9b39ae1b2/Projects/#NFTs/simulate-mint/node_modules/gensync/index.js:223:11)
                                                                                                                                                                                                                                                                                                 friendly-errors 14:52:55
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                                                                                                                                                 friendly-errors 14:52:55
ℹ Waiting for file changes                                                                                                                                                                                                                                                                                       14:52:55
ℹ Memory usage: 90.5 MB (RSS: 165 MB)                                                                                                                                                                                                                                                                            14:52:55
ℹ Listening on: http://localhost:3000/  

this is the first run of the app after the setup.

@raresabr raresabr added the bug label Feb 18, 2022
@Nzent
Copy link

Nzent commented May 23, 2022

Same issue

@raresabr
Copy link
Author

I somehow solved it playing with node and yarn versions. Upgraded both to the newest versions.

@iamvaibhav
Copy link

This might not be a nuxt or create-nuxt-app specific issue. I am not using nuxt but found this issue while searching for

at loadCjsOrMjsDefault.next (<anonymous>)
[1]     at requireModule.next (<anonymous>)

I have a Node and a React project (separate). I was wanting to convert it into a monorepo and moved the React one to Node but it gives this error when doing npm i.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants