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

[RC13] Error on production build when using layouts and vue-router < 4.1.6 #15443

Closed
ninebolt6 opened this issue Nov 11, 2022 · 2 comments
Closed

Comments

@ninebolt6
Copy link

ninebolt6 commented Nov 11, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.13
  • Nitro Version: 0.6.1
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-a4huuj

npm run generate && npm run preview

Describe the bug

relates to #15434

If I explicitly add vue-router < 4.1.6 to package.json (or project has a dependency that relies on that version of vue-router) and use <NuxtLayout> in app.vue, production build will not be rendered.

Additional context

No response

Logs

entry.3c02fba1.js:1 TypeError: Cannot read properties of undefined (reading 'meta')
    at as.fn (entry.3c02fba1.js:9:710)
    at as.run (entry.3c02fba1.js:1:4004)
    at get value [as value] (entry.3c02fba1.js:1:12008)
    at Proxy.<anonymous> (entry.3c02fba1.js:9:770)
    at gr (entry.3c02fba1.js:1:15423)
    at de (entry.3c02fba1.js:1:48281)
    at as.P [as fn] (entry.3c02fba1.js:1:48369)
    at as.run (entry.3c02fba1.js:1:4004)
    at f.update (entry.3c02fba1.js:1:48673)
    at ee (entry.3c02fba1.js:1:48699)
@misaon
Copy link
Contributor

misaon commented Nov 11, 2022

Thanks for reproduction 🙏 @ninebolt6

@danielroe
Copy link
Member

Let's track in linked issue

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 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

3 participants