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

after upgrading my nuxt app to latest release I got an error when navigating to any page in SSR #9196

Closed
fahdaddi opened this issue Apr 26, 2021 · 5 comments

Comments

@fahdaddi
Copy link

Hey @pi0, after upgrading my nuxt app to latest release I got an error when navigating to any page different than the home page, it shows the error: This page could not be found! while it was working perfectly in the nuxt@2.15

example of my pages config:

export default {
  home: {
    frFR: '/:amp?',
    frBE: '/:amp?',
    itIT: '/:amp?'
  },
  'about-us/legal-terms': {
    frFR: '/a-propos/mentions-legales/:amp?',
    frBE: '/a-propos/mentions-legales/:amp?',
    itIT: '/a-propos/mentions-legales/:amp?'
  },
}

Originally posted by @fahdaddi in #9010 (comment)

Copy link
Member

Thanks for opening a new issue! Could you provide a reproduction? 🙏

@dewita97
Copy link

Hey, I also encountered this issue.

In my case, I have the nuxt-trailingslash-module in my buildModules that removes '/' at the end of an url. By removing this package from my modules, the app runs as it needs to be.

Try to investigate in your modules which one might not be compatible with the current version of Nuxt.

Regards :)

@alexcroox
Copy link

alexcroox commented May 11, 2021

Not sure if related but since upgrading to the latest, one the generated bundle JS files is being loaded with an additional forward slash causing it to fail to load in production SSR:

https://example.com/public/admin-new-ModalNew/components/api-data/components/form-login/components/guard/components/guard-auth//f8c10e11-39ef08f02a9957807154.js

Notice the //f8c.. at the end ^^

Edit: Fixed by not using [name] in my build.filenames config

@pi0
Copy link
Member

pi0 commented May 11, 2021

#8274 (comment)

@stale
Copy link

stale bot commented Jun 26, 2021

Thanks for your contribution to Nuxt!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

@stale stale bot added the stale label Jun 26, 2021
@stale stale bot closed this as completed Jul 8, 2021
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants