-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Hi Guys
I'm using the config below to connect Zeplin with Storybook
{ "plugins": [ { "name": "@zeplin/cli-connect-react-plugin" }, { "name": "@zeplin/cli-connect-storybook-plugin", "config": { "url": "https://mybranch--xyz.chromatic.com" } } ], "projects": [ "myProjectID" ], "styleguides": [], "components": [ { "path": "MyPathi/src/Components/AppButton/AppButton.js", "zeplinIds": [ "MyZepID" ] } ], "github": { "repository": "repo/path" } }
I have installed all the necessary plugins references in the config , but when I run the command
zeplin connect
Obviously Storybook is indeed installed but checking the logs I can see Zeplin is looking for a file that does not exist in my node_modules
- 2021-05-30 14:38:08 - debug - connect options: {"configFiles":[],"devMode":false,"devModePort":9756,"devModeWatch":true,"plugins":[]}
- 2021-05-30 14:38:08 - debug - component config files: [{"plugins":[{"name":"@zeplin/cli-connect-react-plugin"},{"name":"@zeplin/cli-connect-storybook-plugin","config":{"command":"cd ./packages/shared-ui && yarn storybook"}}],"projects":["60b2f9d94a6dfa1550d529df"],"styleguides":[],"components":[{"path":"packages/shared-ui/src/Components/AppButton/AppButton.js","zeplinIds":["60b2f9eadcee6518e5419c47"]}],"github":{"repository":"channelaffairs/tooth-fairy-mono-repo"}}]
- 2021-05-30 14:38:09 - debug - Initializing @zeplin/cli-connect-react-plugin.
- 2021-05-30 14:38:09 - debug - @zeplin/cli-connect-react-plugin has init method. Initializing with undefined
- 2021-05-30 14:38:09 - debug - Initializing @zeplin/cli-connect-storybook-plugin.
- 2021-05-30 14:38:09 - debug - @zeplin/cli-connect-storybook-plugin has init method. Initializing with {"command":"cd ./packages/shared-ui && yarn storybook"}
- 2021-05-30 14:38:09 - debug - Running command: cd ./packages/shared-ui && yarn storybook
- 2021-05-30 14:38:09 - info - Waiting Storybook to start…
- 2021-05-30 14:38:09 - info - Detected Storybook at http://localhost:6006/iframe.html
- 2021-05-30 14:38:09 - info - The following problems were reported from Storybook:
- 2021-05-30 14:38:09 - error - Errors:
- =========================
- Error: Uncaught [Error: Module build failed: Error: ENOENT: no such file or directory, open 'MyPath/node_modules/@storybook/builder-webpack4/node_modules/webpack/buildin/global.js']
- =========================
- 2021-05-30 14:38:09 - warn - This may lead to some stories not working right or getting detected by Zeplin CLI
- We suggest you fix the errors, but we will continue anyway..
- =========================
- 2021-05-30 14:38:09 - debug - Error: Zeplin CLI requires Storybook version at least 3.4. Please update your Storybook!
This is what I see in Storybook node-modules
My environment is :
MacOS
VSCode
Zeplin CLI - v1.1.11
StoryBook-React - 6.2.6
Monorepo - Yes (Yarn WorkSpaces)

