#Attempting to install storybook into my NextJS 13 project however the cli is not working

1 messages · Page 1 of 1 (latest)

median raptor
#

Hi I am trying to install storybook into a fairly new NextJS 13 application I am using PNPM for the package manager. ESLint, Prettier, Typescript, Tailwind. I keep getting this error whenever I try to install storybook not sure what is causing it. I googled around and think it may have something to do with prettier incompatibility but I am not sure.

formal dragon
#

Hey there @median raptor Yes, this is likely because you have Prettier 3 as a dependency while Storybook still has a dependency on 2.8.x

If you downgrade for now to ^2.8.0 this should solve your problem in the short term while we figure out what to do

median raptor
#

Thanks Shaun ! Appreciate it will downgrade and then post progress thanks!

median raptor
#

That 100% did it I appreciate the assitance shaun. I tried downgrading to 2.8.8 before I posted the question however that did not work also. Thanks for helping me with it!

formal dragon
#

Any time!!! I’m happy to help 🙂

#

I hope that you have a wonderful week

inner swallow
#

tried this and got error with

prettier-plugin-tailwindcss, they need prettier v3 as deps

visual rapids
#

you can probably just downgrade temporarily whilst you run the cli stuff then revert back to 3