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
[2.4.0] Update breaks nested page loading #4873
Comments
Are you sure that this isn't related to #4839? |
I am not but that one seems only related to npm. I am using yarn |
If anyone feels like checking this out I can share my private repo. (I haven't made any changes other than removing node_modules and yarn.lock so the problem should be related to 2.4.0 I believe) |
Strange. Can't reproduce that on CSB. https://codesandbox.io/s/github/manniL/nuxt-4873/tree/master/
Try to remove your yarn lock and re-build your modules. |
Already tried that without luck. I will try to reproduce the error in a new installation soon. |
@mauxtin Great! Please ping back if you think it's a Nuxt issue. |
I can confirm this nested routes broke after upgrade. |
Update, |
I just tried with |
Not sure why but Now I am getting |
@mauxtin that sounds like a babel issue |
@mauxtin Lock file tries it's best to reduce changes when updating a single dependency. In case of nuxt upgrade, i recommend to always remove and create lock file :) |
Yeah, I already tried removing the yarn.lock and reinstalling with no effect. I also tried to build the project and run |
I managed to pinpoint the problem in my nuxt.config.js > build and specifically in this section.
Removing the presets array solves my problem. Any ideas what would be the problem with it? |
@mauxtin probably because the target for node/the server side is not present. https://github.com/nuxt/nuxt.js/blob/dev/packages/babel-preset-app/src/index.js#L53 |
@manniL I am confused. Is my config wrong or is this is a bug? I tried to add the node as you mentioned (if I understood correctly) and set it to 'current' based on what is mentioned in the docs but the error persists.
|
|
Let's track the issue in #4900 |
Not sure if this is a related issue or not but I have this issue after upgrading to 2.4.2. What to do?
UPDATE The error only comes with Nuxt.js 2.4.2 and NPM |
@imShara i switched to yarn and it works ok. Maybe you can make switch too... It's an NPM bug. |
@PrimozRome, yep, I temporary switched too, but no prefer yarn |
Version
v2.4.0
Reproduction link
https://codesandbox.io/s/7mowyo1vnj
Steps to reproduce
After upgrading to 2.4.0 using yarn I get the following error:
I have to say that the page in the error changes every time but is always a nested one.
router.js
I tried deleting the .nuxt, .node_modules and yarn.lock and run
yarn install && yarn run dev
but the error persists.What is expected ?
Nested routes to work as they used to in prior versions
What is actually happening?
They don't work. I get "This dependency was not found" instead.
Additional comments?
I will try to create a reproduction repo in the next couple of days, unless someone else does. I tried to use CodeSandbox to create one but I think it fails due to a different reason (a codesandbox problem I believe - error: Cannot find module './components/nuxt-link.server.js').
The text was updated successfully, but these errors were encountered: