Skip to content

Commit

Permalink
fragile fix for: Singleton client API not yet initialized
Browse files Browse the repository at this point in the history
@storybook/client-api peer depends on react.

@storybook/[email protected] depends on @storybook/client-api and [email protected]. But your workspaces depend on @storybook/client-api and [email protected].

yarn why -R @storybook/client-api
yarn why -R react

Thats why Yarn has to create two copies of @storybook/client-api: the first copy which uses [email protected] and the other copy which uses [email protected]
  • Loading branch information
bfanger authored and joshwooding committed Feb 23, 2022
1 parent e189fa2 commit a459195
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1,173 deletions.
12 changes: 6 additions & 6 deletions packages/example-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"author": "",
"license": "MIT",
"dependencies": {
"react": "17.0.2",
"react-dom": "17.0.2"
"react": "^16.4.14",
"react-dom": "^16.4.14"
},
"devDependencies": {
"@storybook/addon-a11y": "^6.4.0",
"@storybook/addon-docs": "^6.4.0",
"@storybook/addon-essentials": "^6.4.0",
"@storybook/react": "^6.4.0",
"@storybook/addon-a11y": "6.4.14",
"@storybook/addon-docs": "6.4.14",
"@storybook/addon-essentials": "6.4.14",
"@storybook/react": "6.4.14",
"storybook-builder-vite": "workspace:*",
"typescript": "^4.5.4",
"vite": "2.7.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/example-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"react": "17.0.2",
"react-dom": "17.0.2"
"react": "^16.4.14",
"react-dom": "^16.4.14"
},
"devDependencies": {
"@storybook/addon-a11y": "^6.4.14",
Expand Down
4 changes: 2 additions & 2 deletions packages/example-workspaces/packages/catalog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"react": "17.0.2",
"react-dom": "17.0.2"
"react": "^16.4.14",
"react-dom": "^16.4.14"
},
"devDependencies": {
"@storybook/addon-a11y": "^6.4.14",
Expand Down
Loading

0 comments on commit a459195

Please sign in to comment.