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
Prettier broke Nuxt 1.4 #3385
Comments
Hope the explanation is clear. My brain melted trying to explain the dependencies here 😄 |
It's also possible to use |
Ah thanks @denniszon! Didn't notice this one. Then nothing to do here, newer will get picked up from nuxt 👍 |
@Diolor When this is going to be fixed and hotfix released for nuxt 1.4.0. In nuxt's package.json vue-loader version is still 13.7.0 instead of ^13.7.0 |
@Diolor I think you misunderstood me. I ment to say that Nuxt 1.4 is using the syntax |
@Diolor please open the issue till it is fixed. so that other users can refer. |
@shivgarg5676 you can manually set the Vue-loader version until this is fixed:
|
for this problem ,I review all my nuxt project , so , if want fix this problem without update nuxt for yarn , can add
for npm , can .... btw , I fixed my about 20 project yesterday ... 😢 |
For our projects we fixed it with: |
npm i prettier@~1.12.0 这个是降版本 因为是更新成1.13.0崩的 |
This should be fixed with the latest release of |
@pi0 This is fixed in vue-loader(13.7.2). But It will not get solved in nuxt repositories using nuxt version 1.4.0. Because in package-json of nuxt 1.4.0 vue-loader version is explicitly specified as 13.7.0 instead of ^13.7.0. So yarn update won't install the new version of vue-loader(it will not install 13.7.2(fixed one)) Please see this link to verify that this will not update vue loader version. @Diolor @pi0 Please reopen the issue. So that others can refer |
That's the correct way to go @shivgarg5676 💪 |
Just freakin put that |
(On master it' s fixed) |
@14nrv As far as I see, master is for development of nuxt.js v2 right now. |
@jankal sorry, I was thinking that nuxt-edge was only on the dev branch because it s v2.0.0 on the package.json and v1 on master |
@14nrv sorry, I just checked back on master. Master is at 1.2.0 as package.json states. |
when new release? |
A patch release v1.4.1 for the quick fix has been published. |
@sky-code |
Version
v1.4.0
Reproduction link
prettier/prettier#4567
Steps to reproduce
TL;DR: Nuxt 1.4 is now broken either dev or prod mode.
Prettier 1.13 had a regression in Vue: prettier/prettier#4567
Now Nuxt 1.4 uses vue-loader 13.7 which depends and uses old versions of
component-compiler-utils
.There was a fix yesterday in
component-compiler-utils
to fix the regression of Prettier: vuejs/component-compiler-utils#15The new stable version of component-compiler-utils is 1.3.0.
In order nuxt to work properly and use the version with the fix, it should migrate vue-loader to 15.2 (as is in Nuxt v2).
What is expected ?
No error
What is actually happening?
Compilation error in 1.4
The text was updated successfully, but these errors were encountered: