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 in ./.nuxt/router.js #4839
Comments
I was with the same problem, I decided to install the dependencies with yarn and it worked |
It's an NPM bug and not related to nuxt. Use More info: |
Hi, |
Sure |
I encounter the same error in v2.4.0. Although, we can't go yarn as a team. This bug isn't yet "resolved" as to me. |
|
My apologies @manniL. I should have paid better attention. Thank you for keeping it open. For all the other "I don't have time to read all the comments. Give me the fix" people like me here is the workaround (until npm fixes their thing).
|
@koresar No problem We also added that to the release notes (over at https://github.com/nuxt/nuxt.js/releases/tag/v2.4.0) 🙌 |
For anyone else who might be in same situation. I've tried various combinations of the above mentioned commands and none of them work for my setup. If you tried all the above and still having the same error try the following.
|
thanks that worked to me. Thanks |
Clsing here and pinned the bug until npm/cli#147 is merged and released More info: |
Yarn will solve your problem |
Includes an upgrade to latest major version of chroma.js, as well as some code formatting changes. Removes `vue-slider-component` in favour of an internal range input that is SSR-compatible. Currently built with Sass for styles, pending a refactor/redesign. `yarn.lock` replaces `package-lock.json` pending a solution to this [peerDependencies issue](https://npm.community/t/packages-with-peerdependencies-are-incorrectly-hoisted/4794) (see this [nuxt.js issue](nuxt/nuxt#4839) for more info).
FYI npm is reverting their fix npm/cli#152 |
This issue also occurred on upgrading to nuxt 2.5.1 from 2.4.3, mitigated by outlined workaround. |
fix: because of issue with webpack and npm we have a package resolution issue with nuxt. So we have to move to yarn for now, this is the easiest way to resolve this issue (workaround). nuxt/nuxt#4839 fix: security fix via npm audit --force package change: move from markdown-loader@4.0.0 to markdown-loader@5.0.0 this major change in package version can lead to potentials error in code but this was required to pass the npm audit (resolved with npm audit --force) fix: fix vue-directive-tooltip issue package change: moved from vue-directive-tooltip to lefuturiste-vue-directive-tooltip because of a useless and not working postinstall script. Now on a forked package (follow the issue on the repository and be ready to revert to the original package). This can lead to potentials issue with the code later. hekigan/vue-directive-tooltip#44
Version
v2.3.4
Reproduction link
http://itstoobig.code
Steps to reproduce
I'm trying to migrate Nuxt from 1.4.2 to current latest 2.3.4. I went through migration instruction steps. But still getting build error
Actual
./.nuxt/router.js
content of that part:nuxt.config.js:
tsconfig.js
node version: 10.15.0
npm version: 6.6.0
What is expected ?
Build without errors
What is actually happening?
The text was updated successfully, but these errors were encountered: