wingsuit-designsystem / wingsuit

Twig for Storybook
GNU General Public License v2.0
92 stars 16 forks source link

ERR! Error: Cannot find module 'tailwindcss/plugin' #130

Closed danleecpi closed 3 years ago

danleecpi commented 3 years ago

Describe the bug After installing from scratch I get the following error when running storybook.

ERR! Error: Cannot find module 'tailwindcss/plugin'

To Reproduce Steps to reproduce the behavior:

  1. npx @wingsuit-designsystem/cli init
  2. npm install
  3. npm run dev:storybook
  4. See error

Expected behavior Storybook runs

Versions macOS Big Sur 11.0.1 Node Version: 11.15.0

Screenshots

Screenshot 2021-03-26 at 14 24 15
christianwiedemann commented 3 years ago

Hi, can you give me more details. Which OS? Which node version. And I can't open your screenshot.

Thanks!

danleecpi commented 3 years ago

@christianwiedemann Updated original message above. Thanks!

christianwiedemann commented 3 years ago

That is a problem of tailwindcss/forms I think

See https://github.com/tailwindlabs/tailwindcss-forms/issues/31

Can you try to delete node_modules and try it with yarn. For me it is hard to reproduce.

danleecpi commented 3 years ago

Ok so I do...

yarn install yarn dev:storybook

and get...

/bin/sh: start-storybook: command not found error Command failed with exit code 127.

christianwiedemann commented 3 years ago

Ah you need node version > 12 for tailwindcss 2. That is probably the reason. Would be great if you check that.

danleecpi commented 3 years ago

Thanks @christianwiedemann - I did the following and it worked. I should have checked!

nvm use --lts

Now using node v14.16.0 (npm v6.14.11)

yarn install
yarn dev:storybook

I'm actually going to try and use this in a Craft CMS project as it uses twig. Is there anything I need to be aware of do you think? Obviously this was built for Drupal.

christianwiedemann commented 3 years ago

I know from the slack group that other developers using CraftCMS. Maybe you join the slack group and ask there. But in general it should not be a problem.

iuscare commented 3 years ago

@danleecpi I am using wingsuit and CraftCMS, too. So far now problems at all. I develop, maintain & document the twig components in wingsuit and port them over to craftcms afterwards. So I am using two separate instances. One is wingsuit and the other one is the classic CraftCMS approach. Don't mind to drop a msg on wingsuit slack or on craftcms discrod. (User Pascal#3565)

christianwiedemann commented 3 years ago

@iuscare @danleecpi I don't know CraftCMS. But it would be an option to create an "app" starterkit for CraftCMS? Open a issue and maybe we can discuss there. I will close this for now.