-
Notifications
You must be signed in to change notification settings - Fork 8
ReferenceError: can't find variable require #31
Comments
Are your stories using CSF or old API? |
I’m using the old API. this error was occuring only when running react-native run-ios. Because storybook needs a platform to run appropriately this means it is not working. |
Why would run Storybook inside the native app 🤔 Do your storyshots work, or no? |
Well, on React Native it renders the components in the app. |
Good to know about RN, Storyshots is definitely only for testing though. You may want to head into the Storybook discord for more help! I'm not certain your issue relates to this macro or not, regardless I don't have the bandwidth to resolve your issue! |
@kylemh Thanks man, I'll try some help over there. |
Have the same problem any have you found anything @vinipachecov ? |
@zerubeus Not really. Storybook needs a platform so this require context will not work, it only works for web from what I've understood. |
I am not quite understanding how this macro overrides the require function? I can't find such code, so since this is a babel compile time only macro, it should work inside the RN app too. |
Hi there!
I was following the storybook tutorial but using it with react native. Is it working for RN?
Here is my config file for storybook
My package.json
Steps to reproduce:
The text was updated successfully, but these errors were encountered: