storybookjs / react-native

📓 Storybook for React Native!
https://storybook.js.org
MIT License
1.05k stars 152 forks source link

Unable to run expo-example: Unable to resolve "./dist/index" from "../../packages/ondevice-controls/register.js" #580

Closed Gome510 closed 3 months ago

Gome510 commented 3 months ago

Describe the bug When I try to run the expo-example storybook app on ios simulator, I get an error Unable to resolve "./dist/index" from "../../packages/ondevice-controls/register.js"

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/storybookjs/react-native.git
  2. cd react-native
  3. yarn
  4. yarn workspace expo-example storybook
  5. Press "i" (I was running it on ios)

Expected behavior I expected the see a storybook react native app.

Screenshots

image

System: Please paste the results of npx -p @storybook/cli@next sb info here. Storybook Environment Info:

System: OS: macOS 14.4.1 CPU: (12) arm64 Apple M2 Pro Shell: 5.9 - /bin/zsh Binaries: Node: 18.20.2 - /usr/local/bin/node Yarn: 4.1.0 - /usr/local/bin/yarn <----- active npm: 10.5.0 - /usr/local/bin/npm Browsers: Chrome: 125.0.6422.142 Safari: 17.4.1

dannyhw commented 3 months ago

Have you ran yarn build in the workspace root?

Gome510 commented 3 months ago

Have you ran yarn build in the workspace root?

That worked, thank you!