Closed ghost closed 3 years ago
Thanks for the bug report. Looks like React 17 just got out of RC last week. This a bug upstream as Storybook is working on React 17 support and has an alpha release of v6.1.0 that seems to support it (but is missing react-dom
support).
I have a feeling this will be released shortly, so I'm not sure if action is warranted. But yes, create
doesn't pin any specific version which means it always has latest without needing to change the code but which can also cause problems like this (or #810 ) where latest of one thing isn't compatible with everything else.
As you're probably aware, this can be manually fixed by manually downgrading in the meantime, so it shouldn't be a huge hindrance. I noticed you were using npm
v7 which does have some different behavior regarding peerDeps, so that might complicate it a bit.
Storybook 6.1.0 was released into stable on November 18th and supports React 17, so this is no longer an issue. Please upgrade your Storybook version if this still. affects you.
Current Behavior
When I run
npx tsdx create mylib --template react-with-storybook
I get this error:Expected behavior
The project should be created without errors.
Suggested solution(s)
Upgrade storybook version to a version that uses react@17.0.1 (if it exists) or downgrade react to react@16.8.0.
Additional context
Your environment