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

Nuxt compilation error - Cannot find module '@babel/preset-env/lib/utils' #190

Closed
BuckyMaler opened this issue Jul 24, 2021 · 5 comments · Fixed by #206
Closed

Nuxt compilation error - Cannot find module '@babel/preset-env/lib/utils' #190

BuckyMaler opened this issue Jul 24, 2021 · 5 comments · Fixed by #206
Labels
bug Something isn't working

Comments

@BuckyMaler
Copy link
Collaborator

Current Behavior

A compilation error for a newly generated Nuxt app.

Expected Behavior

No compilation errors for a newly generated Nuxt app.

Steps to Reproduce

  1. npx create-nx-workspace@^12.0.0
  2. cd my-workspace
  3. npm install @nrwl/cypress@^12.0.0 @nrwl/jest@^12.0.0 @nrwl/linter@^12.0.0 --save-dev
  4. npm install @nx-plus/nuxt --save-dev
  5. nx g @nx-plus/nuxt:app my-app
  6. nx serve my-app

Failure Logs

Screen Shot 2021-07-24 at 2 30 32 PM

Environment

Plugin name and version: @nx-plus/nuxt@12.0.0

Node : 14.15.1
OS : darwin x64
npm : 6.14.8

nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 12.6.2
@nrwl/cypress : 12.6.2
@nrwl/devkit : 12.6.2
@nrwl/eslint-plugin-nx : 12.6.2
@nrwl/express : Not Found
@nrwl/jest : 12.6.2
@nrwl/linter : 12.6.2
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.6.2
@nrwl/web : Not Found
@nrwl/workspace : 12.6.2
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.3.5

@BuckyMaler BuckyMaler added the bug Something isn't working label Jul 24, 2021
@BuckyMaler
Copy link
Collaborator Author

Workaround: nuxt/nuxt#8882 (comment)

@nathandaly
Copy link

nathandaly commented Jul 25, 2021

@BuckyMaler I added "pre-install": "npx npm-force-resolutions" to main the nx package.json file and still faces the same output. I use NPM, have I missed something?

Node : 14.17.3
OS   : darwin x64
npm  : 6.14.13

nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 12.6.2
@nrwl/cypress : 12.6.2
@nrwl/devkit : 12.6.2
@nrwl/eslint-plugin-nx : 12.6.2
@nrwl/express : Not Found
@nrwl/jest : 12.6.2
@nrwl/linter : 12.6.2
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.6.2
@nrwl/web : Not Found
@nrwl/workspace : 12.6.2
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.3.5

@nathandaly
Copy link

Ah I needed the below also even though I thought that was just for yarn users.

 "resolutions": {
    "@babel/preset-env": "~7.12.17"
  }

@nidomiro
Copy link

I had the same problem after a clean setup (Readme followed) today. Upgrading the nuxt dependency to ^2.15.8 fixed the issue for me

tomonakar added a commit to tomonakar/nuxt-ec that referenced this issue Aug 23, 2021
@oben01
Copy link

oben01 commented Sep 17, 2021

Any update on this issue ?

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

Successfully merging a pull request may close this issue.

4 participants