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

Does not provide an export named 'useActiveRoute' #15482

Closed
andorfermichael opened this issue Nov 16, 2022 · 2 comments · Fixed by nuxt/framework#9045
Closed

Does not provide an export named 'useActiveRoute' #15482

andorfermichael opened this issue Nov 16, 2022 · 2 comments · Fixed by nuxt/framework#9045

Comments

@andorfermichael
Copy link

andorfermichael commented Nov 16, 2022

Environment

Nuxi 3.0.0-rc.14 10:07:33
10:07:33
RootDir: /home/user/Documents/software-projects/frontend3-minimal 10:07:33
Nuxt project info: 10:07:33


  • Operating System: Linux
  • Node Version: v16.17.0
  • Nuxt Version: 3.0.0-rc.14
  • Nitro Version: 1.0.0
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: ssr, experimental, components
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-sbqw4m-5gfdlu

Describe the bug

When trying to navigate via links in navigation header, the following error is thrown:

SyntaxError: The requested module '/_nuxt/node_modules/nuxt/dist/app/index.mjs?v=00aee95e' does not provide an export named 'useActiveRoute' (at imports.mjs:3:279)
triggerError @ vue-router.mjs:3451
(anonymous) @ vue-router.mjs:3173
Promise.catch (async)
pushWithRedirect @ vue-router.mjs:3167
push @ vue-router.mjs:3099
navigate @ vue-router.mjs:2189
callWithErrorHandling @ runtime-core.esm-bundler.js:157
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:166
invoker @ runtime-dom.esm-bundler.js:345

Additional context

It worked until Nuxi 3.0.0-rc.13, but stopped working in Nuxi 3.0.0-rc.14

Logs

No response

@andorfermichael
Copy link
Author

@andorfermichael
Copy link
Author

@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.

2 participants