You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default CRA webpack config contains an alias for react-native as react-native-web.
When adding storybook via npx sb init, running storybook with react-native stories fails because it is not finding the alias given by CRA.
Steps to reproduce the behavior
npx create-react-app storybook-web-app
cd storybook-web-app && npx sb init
yarn storybook --debug-webpack
Unable to see alias for "react-native" as "react-native-web" which is present in default CRA.
Expected behavior
Aliases from CRA should be present.
Environment
OS: 11.5.1 Big Sur
Node.js version: 14
NPM version: yarn 1.22.10
Browser (if applicable): chrome
Browser version (if applicable): 90
The text was updated successfully, but these errors were encountered:
Describe the bug
Default CRA webpack config contains an alias for
react-native
asreact-native-web
.When adding storybook via
npx sb init
, running storybook with react-native stories fails because it is not finding the alias given by CRA.Steps to reproduce the behavior
npx create-react-app storybook-web-app
cd storybook-web-app && npx sb init
yarn storybook --debug-webpack
Expected behavior
Aliases from CRA should be present.
Environment
The text was updated successfully, but these errors were encountered: