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

fix nuxt compilation error #170

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

BuckyMaler
Copy link
Collaborator

Current Behavior

A compiler error is thrown when building a Nuxt app inside of a workspace that also has a Vue app.

Screen Shot 2021-04-22 at 10 49 52 PM

The error is thrown because nuxt >=2.15.0 depends on css-loader v4, but when used in a workspace with a Vue app css-loader v3 is resolved. The error isn't thrown until v2.15.4 when the compileType option is set, but it not being set was a bug so that's why I pinned the version at v2.14.12.

To reproduce:

  1. yarn create-playground
  2. cd tmp/nx-playground/proj
  3. nx g @nx-plus/vue:app my-vue-app --style css --routing false --vueVersion 2 --babel false
  4. nx g @nx-plus/nuxt:app my-nuxt-app
  5. nx serve my-nuxt-app

Expected Behavior

No compilation error.

@ZachJW34 ZachJW34 merged commit e878d60 into ZachJW34:master Apr 26, 2021
@BuckyMaler BuckyMaler deleted the fix-nuxt-compilation-error branch April 27, 2021 05:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants