-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Problems when running with /pages
directory
#761
Comments
@chakAs3 Could you please explain how the custom router setup in the storybook addon works? In particular, why do we need to:
|
Hi, Same for me. Any update ? I did this in my nuxt config to remove the error temporary
|
can confirm im getting the same issue, @jamyouss fix seems to work however with each navigation between stories im logging browser errors that all say the following. i suspect there's an issue with nuxt v4.... Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'app') |
When the Nuxt app has a non-empty
pages
directory, you get the following errors in the console:To reproduce, run
example:showcase:dev
and go to "http://localhost:6006/?path=/story/features-custom-components--custom-template". You should see this error message displayed twice in the console.Nuxt only adds the
app/router
plugin when there are no pages:https://github.com/nuxt/nuxt/blob/3b907c1c6aa623e88125d731fd267e6a9a89abba/packages/nuxt/src/pages/module.ts#L121-L122
The text was updated successfully, but these errors were encountered: