Storybook: Simple example not working - error in console

Created on 31 Jul 2020  路  5Comments  路  Source: nuxt-community/storybook

Version

@nuxtjs/storybook: v1.0.0
nuxt: v2.14.0

Reproduction Link

https://github.com/nuxt/nuxtjs.org/tree/test-storybook

Steps to reproduce

run the dev command for storybook and check console

What is Expected?

should show stories. followed example as per docs with Link.vue and Link.stories.js. Also updated all packages with fresh install etc just incase but still get error.

What is actually happening?

page is not loading properly
Screenshot 2020-07-31 at 16 06 07

Screenshot 2020-07-31 at 15 54 29

bug

Most helpful comment

Issue is that we are not applying custom entry points and calling webpack:config (because actual nuxt build is mocked). @farnabaz is working on it 馃槉

All 5 comments

Hello !

I have exactly the same issue. Page is not loading.
image

Error is at line 23 (I change my personal path)
image

I'm using nuxt 2.14.0 and i also have activated components: true options to have global components. :)

Issue is that we are not applying custom entry points and calling webpack:config (because actual nuxt build is mocked). @farnabaz is working on it 馃槉

Have the same issue, pasting the error here in plain text so searches can take folks to this issue
Uncaught ReferenceError: components is not defined at Module../.nuxt-storybook/storybook/preview.js (main.6f5e15f07784cf4afe03.bundle.js:565) at __webpack_require__ (runtime~main.6f5e15f07784cf4afe03.bundle.js:849) at fn (runtime~main.6f5e15f07784cf4afe03.bundle.js:151) at Object.0 (main.6f5e15f07784cf4afe03.bundle.js:19403) at __webpack_require__ (runtime~main.6f5e15f07784cf4afe03.bundle.js:849) at checkDeferredModules (runtime~main.6f5e15f07784cf4afe03.bundle.js:46) at Array.webpackJsonpCallback [as push] (runtime~main.6f5e15f07784cf4afe03.bundle.js:33) at main.6f5e15f07784cf4afe03.bundle.js:1

@altryne I have the exact same issue. Thanks.

Fixed in v1.1.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

macieklad picture macieklad  路  4Comments

drewbaker picture drewbaker  路  5Comments

productfrontenddeveloper picture productfrontenddeveloper  路  7Comments

Atinux picture Atinux  路  3Comments

dankellett picture dankellett  路  3Comments