Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRA webpack config alias for "react-native-web" not respected #208

Open
jayshah123 opened this issue Aug 5, 2021 · 0 comments
Open

CRA webpack config alias for "react-native-web" not respected #208

jayshah123 opened this issue Aug 5, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jayshah123
Copy link

Describe the bug

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

  1. npx create-react-app storybook-web-app
  2. cd storybook-web-app && npx sb init
  3. yarn storybook --debug-webpack
  4. 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
@jayshah123 jayshah123 added the bug Something isn't working label Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant