We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Inside the setup function, the code looks for import.meta.env.__STORYBOOK__ to make sure that storybook is setup.
import.meta.env.__STORYBOOK__
In the source code, the if statement checks import.meta.env?.__STORYBOOK__, with optional chaining to make sure that import.meta.env is not undefined.
import.meta.env?.__STORYBOOK__
import.meta.env
undefined
However, in the distributed npm package, the optional chaining is absent, causing problems when setting up storybook.
@nuxtjs/storybook version: 8.0.0 Nuxt version: 3.11.2 Node versions: 18.20.2 OS: WSL for Windows
Steps to reproduce:
npx nuxi@latest init nuxt-project
npx nuxi@latest module add storybook
node_modules
The text was updated successfully, but these errors were encountered:
Duplicate of #538
Sorry, something went wrong.
No branches or pull requests
Inside the setup function, the code looks for
import.meta.env.__STORYBOOK__
to make sure that storybook is setup.In the source code, the if statement checks
import.meta.env?.__STORYBOOK__
, with optional chaining to make sure thatimport.meta.env
is notundefined
.However, in the distributed npm package, the optional chaining is absent, causing problems when setting up storybook.
@nuxtjs/storybook version: 8.0.0
Nuxt version: 3.11.2
Node versions: 18.20.2
OS: WSL for Windows
Steps to reproduce:
npx nuxi@latest init nuxt-project
npx nuxi@latest module add storybook
node_modules
directory to see that the distributed code is different from the source code.The text was updated successfully, but these errors were encountered: