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

injection "Symbol(route location)" not found #15288

Closed
danielroe opened this issue Oct 27, 2022 · 8 comments · Fixed by nuxt/framework#8544
Closed

injection "Symbol(route location)" not found #15288

danielroe opened this issue Oct 27, 2022 · 8 comments · Fixed by nuxt/framework#8544

Comments

@danielroe
Copy link
Member

danielroe commented Oct 27, 2022

This started happening after an upgrade from 3.0.0-rc.13-27778536.1d795f0 to 3.0.0-rc.13-27779883.2284525. And yes, I do use pages in the project.


  • Operating System: Windows_NT
  • Node Version: v16.13.0
  • Nuxt Version: 3.0.0-rc.13-27779883.2284525
  • Nitro Version: 0.6.1-27779851.28e2880
  • Package Manager: npm@8.13.2
  • Builder: vite
  • User Config: app, ssr, modules, css, typescript, alias, build, runtimeConfig, vue, vite, proxy, headlessui
  • Runtime Modules: @nuxtjs/tailwindcss@6.1.1, floating-vue/nuxt, @pinia/nuxt@0.4.3, @vueuse/nuxt@9.4.0, unplugin-icons/nuxt, @formkit/nuxt@1.0.0-beta.11-c95e605, nuxt-proxy@0.3.0, @nuxtjs/critters@0.3.3, nuxt-icon@0.1.7, nuxt-headlessui@1.0.1
  • Build Modules: -

image
image

Originally posted by @DamianGlowala in nuxt/framework#8520 (comment)

@nndnha
Copy link

nndnha commented Oct 28, 2022

I have the same issue after an upgrade from 3.0.0-rc.13-27776679.4536242 to 3.0.0-rc.13-27776685.6bcd9cd so I think the problem comes from this

@danielroe
Copy link
Member Author

danielroe commented Oct 28, 2022

I think you're right. Does adding vue-router to vite.optimizeDeps.include help?

@nndnha
Copy link

nndnha commented Oct 28, 2022

Yes, the error is gone.

@danielroe
Copy link
Member Author

@Maxp777 From the error message, you may have multiple versions of Vue or vue-router, in your project.

@danielroe
Copy link
Member Author

Please do open a new issue with a reproduction and some instructions. I don't think it's the same one as this.

You may find that deleting your .nuxt folder helps. Do you have any node_modules folders in a parent directory? Previously we had an issue in a sub dependency where they were wrongly being detected as part of your workspace.

@danielroe
Copy link
Member Author

Okay, I'm pretty sure it's the same issue as #14952. Let's continue our conversation there.

@SebbeJohansson
Copy link

I am pretty sure i just encountered this error, but I'm not sure if its because of something weird I'm doing.

From what I can tell it has to do with me using app.vue and a custom layout that is set based on a fetch.
image

Reproduction: https://stackblitz.com/edit/github-ryjngg?file=nuxt.config.ts,config%2Fi18n.config.ts

Let me know if its not related to this.

@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

Successfully merging a pull request may close this issue.

4 participants