Storybook: [BUG] Storybook with tailwing jit is broken on latest @nuxtjs/storybook

Created on 2 Apr 2021  路  10Comments  路  Source: nuxt-community/storybook

Version

@nuxtjs/storybook: 4.0.0
nuxt: 2.15.4
@nuxtjs/tailwindcss: 4.0.1 or 4.0.2 or 4.0.3

Reproduction Link

https://github.com/mathieucollet/storybooktest

Steps to reproduce

  1. Create a Nuxt project yarn create nuxt-app whatever with tailwind module
  2. cd IN
  3. Install storybook : yarn add -D @nuxtjs/storybook postcss@latest
  4. Add the jit option to tailwind in nuxt.config.js:
tailwindcss: {
  jit: true,
},
  1. Launch Storybook: nuxt storybook

What is Expected?

Storybook should be working.

What is actually happening?

ERROR  Failed to compile with 1 errors
ERROR  Error 
No files matching '../.nuxt-storybook/storybook/storybook-init-framework-entry.js' were found.

...

ERROR in No files matching '../.nuxt-storybook/storybook/storybook-init-framework-entry.js' were found.

Workaround

Removing jit from tailwind config solve the problem

Anything else

Before the last update of @nuxtjs/storybook it was working fine even with jit option setted

bug

Most helpful comment

This should fix in v4.0.1.

All 10 comments

Do you mind creating a reproduction sample?
It seems fine in my attempts

Here is a repo that has this problem: https://github.com/mathieucollet/storybooktest

This should fix in v4.0.1.

Hi, I've used node 12 and @nuxtjs/storybook: 4.0.1.
This works for me.
I hope I have helped you

I still run into some problems when I try to build the storybook during the IC, but it now works locally as long as I don't build it with 4.0.1.

@mathieucollet Its this issue reproducible with the repo? https://github.com/mathieucollet/storybooktest

@farnabaz I updated the repo with @nuxtjs/storybook v4.0.1 to allow you reproduce the error.

With 4.0.1 I can now run nuxt storybook but not nuxt storybook build

Damn, I didn't look hard enough for the solution to my problem then :'( Sorry and thanks for the info!

Just released v4.0.2 path with the fix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Atinux picture Atinux  路  3Comments

dChiamp picture dChiamp  路  3Comments

ponnex picture ponnex  路  5Comments

Sananes picture Sananes  路  3Comments

altryne picture altryne  路  4Comments