question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'./nuxt' is not defined

See original GitHub issue

“nuxt”: “2.15.8”,

pinia 2.0.0-rc.6

yarn dev Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./nuxt’ is not defined by “exports” in

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
posvacommented, Aug 23, 2021

You need to install @pinia/nuxt: https://pinia.esm.dev/ssr/nuxt.html

0reactions
vinayakkulkarnicommented, Nov 27, 2021

Yep, facing the same issue as $nuxt is inaccessible via this within Pinia defineStore() I guess?

Screenshot 2021-11-27 at 10 36 36 PM
Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: $nuxt is not defined - Stack Overflow
I've developed a frontend using nuxt, currently no ssr + nuxt auth. On my localhost in development mode everything works fine.
Read more >
NuxtJs: ReferenceError: NuxtError is not defined #8066 - GitHub
I am learning nuxt and my fresh project is generated with the 2.14.5 nuxt version ... NuxtJs: ReferenceError: NuxtError is not defined #8066....
Read more >
Nuxt configuration file
Nuxt configuration file. By default, Nuxt is configured to cover most use cases. This default configuration can be overwritten with the nuxt.config.js file....
Read more >
[Solved]-"document is not defined" in Nuxt.js-nuxt.js
[Solved]-"document is not defined" in Nuxt.js-nuxt.js ... It's a common error when you start a Nuxt project ;-). The Choices.js lib is available...
Read more >
require is not defined nuxt | The AI Search Engine You Control
The Window is not defined error results from nodejs server side scripts not recognising the window object which is native to browsers only....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found