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
Module not found: Can't resolve '@storybook/addon-ondevice-actions/manager' in React Native #18692
Comments
Fix: -import '@storybook/addon-ondevice-actions/manager';
-import '@storybook/addon-ondevice-knobs/manager';
+import '@storybook/addon-ondevice-actions/register';
+import '@storybook/addon-ondevice-knobs/register'; |
Somewhat related question: shouldn't the standard imports be updated too? I'm getting:
Changing |
@designorant I got it changing only the
Did you export StorybookUIRoot from the entry point of you app? |
@jsflor Yes, thanks, I did. I see Storybook in iOS Simulator just fine, but the web version via Interestingly, when following the tutorial via Expo, |
@shilman Looks like this got closed despite more updates needed in |
Ermahgerd!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.16 containing PR #18693 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Zoinks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.10-alpha.0 containing PR #18693 that references this issue. Upgrade today to the
|
Yippee!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.10 containing PR #18693 that references this issue. Upgrade today to the
|
Describe the bug
Getting module not found error when trying to run storybook in react native
To Reproduce
Can't use repro command properly since there is no support of react native yet.
Follow the steps depicted in Storybook get started:
expo init --template tabs@sdk-36 taskbox
(Create new empty expo project)cd taskbox
npx -p @storybook/cli sb init --type react_native
(Add storybook support)export {default} from './storybook';
(Export default from entrypoint of your app)After setting up the project if you try to run storybook it will crash and you got the error depicted
System
System:
OS: macOS 11.6.1
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Binaries:
Node: 14.17.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 7.16.0 - /usr/local/bin/npm
Browsers:
Chrome: 103.0.5060.114
Firefox: 100.0
Safari: 15.2
npmPackages:
@storybook/addon-actions: ^5.3 => 5.3.21
@storybook/addon-knobs: ^5.3 => 5.3.21
@storybook/addon-links: ^5.3 => 5.3.21
@storybook/addon-ondevice-actions: ^5.3.23 => 5.3.23
@storybook/addon-ondevice-knobs: ^5.3.25 => 5.3.25
@storybook/react-native: ^5.3.25 => 5.3.25
Additional context
The text was updated successfully, but these errors were encountered: