Open sandtreader opened 2 years ago
Followup which also suggests sticking to React ^17 - the blah.test produces warnings:
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
(this is using the 'react' template)
Just found this PR which I suspect might fix it:
I've got the same problem creating react-with-storybook
template project.
Tried node version: 18.3.0
, 16.14.0
Os: Windows 11
P.s. Building with the react
template works fine for me.
I've got the same problem
Just a bump, same issue here.
Current Behavior
tsdx create locks up (for as long as I was prepared to wait, 30 mins or more) when installing npm modules if you choose 'react-with-storybook' template. It works fine with 'react'.
npm logs show it is caught in a loop trying to resolve a conflict between react ^17.0.2 from @storybook/addon-actions and react being 18.2.0:
Expected behavior
The 'npm install' phase should complete.
Suggested solution(s)
Fix the version of react dependency to one compatible with StoryBook? I saw a similar issue here when React went 16->17 and StoryBook hadn't caught up.
Additional context
Node 19.1.0, npm 9.1.1 (also failed the same on 14.x / 8.x)
Your environment