-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Remove react from package.json #16629
Conversation
Nx Cloud ReportWe didn't find any information for the current pull request with the commit d480263. Check the Nx Cloud Github Integration documentation for more information. Sent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that @storybook/vue3
actually depends on React since that's what we use to show the UI. This probably won't be the case in 7.0, so we should be able to clean up these dependencies then. @tmeasday WDYT?
I'm not sure why the package has to depend directly on |
Now that storybook itself relies on I do a dependency list for ❯ pnpm why @types/react
Legend: production dependency, optional only, dev only
[email protected] /Users/upupming/projects/vue3-compact-template
devDependencies:
@storybook/addon-actions 6.4.0-beta.23
└─┬ @storybook/components 6.4.0-beta.23
└─┬ @types/react-syntax-highlighter 11.0.5
└── @types/react 17.0.33
@storybook/addon-essentials 6.4.0-beta.23
├─┬ @storybook/addon-actions 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
├─┬ @storybook/addon-backgrounds 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
├─┬ @storybook/addon-controls 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
├─┬ @storybook/addon-docs 6.4.0-beta.23
│ ├─┬ @storybook/builder-webpack4 6.4.0-beta.23
│ │ ├─┬ @storybook/components 6.4.0-beta.23
│ │ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ │ └── @types/react 17.0.33
│ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ ├─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ ├─┬ @storybook/core 6.4.0-beta.23
│ │ ├─┬ @storybook/core-client 6.4.0-beta.23
│ │ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ │ └── @types/react 17.0.33
│ │ └─┬ @storybook/core-server 6.4.0-beta.23
│ │ ├─┬ @storybook/builder-webpack4 6.4.0-beta.23
│ │ │ ├─┬ @storybook/components 6.4.0-beta.23
│ │ │ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ │ │ └── @types/react 17.0.33
│ │ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ │ └── @types/react 17.0.33
│ │ ├─┬ @storybook/core-client 6.4.0-beta.23
│ │ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ │ └── @types/react 17.0.33
│ │ └─┬ @storybook/manager-webpack4 6.4.0-beta.23
│ │ ├─┬ @storybook/core-client 6.4.0-beta.23
│ │ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ │ └── @types/react 17.0.33
│ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ └─┬ @storybook/vue3 6.4.0-beta.23 peer
│ └─┬ @storybook/core 6.4.0-beta.23
│ ├─┬ @storybook/core-client 6.4.0-beta.23
│ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ └─┬ @storybook/core-server 6.4.0-beta.23
│ ├─┬ @storybook/builder-webpack4 6.4.0-beta.23
│ │ ├─┬ @storybook/components 6.4.0-beta.23
│ │ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ │ └── @types/react 17.0.33
│ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ ├─┬ @storybook/core-client 6.4.0-beta.23
│ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ └─┬ @storybook/manager-webpack4 6.4.0-beta.23
│ ├─┬ @storybook/core-client 6.4.0-beta.23
│ │ └─┬ @storybook/ui 6.4.0-beta.23
│ │ └─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ └─┬ @storybook/ui 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
├─┬ @storybook/addon-measure 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
├─┬ @storybook/addon-outline 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
├─┬ @storybook/addon-toolbars 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
└─┬ @storybook/addon-viewport 6.4.0-beta.23
└─┬ @storybook/components 6.4.0-beta.23
└─┬ @types/react-syntax-highlighter 11.0.5
└── @types/react 17.0.33
@storybook/vue3 6.4.0-beta.23
└─┬ @storybook/core 6.4.0-beta.23
├─┬ @storybook/core-client 6.4.0-beta.23
│ └─┬ @storybook/ui 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
└─┬ @storybook/core-server 6.4.0-beta.23
├─┬ @storybook/builder-webpack4 6.4.0-beta.23
│ ├─┬ @storybook/components 6.4.0-beta.23
│ │ └─┬ @types/react-syntax-highlighter 11.0.5
│ │ └── @types/react 17.0.33
│ └─┬ @storybook/ui 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
├─┬ @storybook/core-client 6.4.0-beta.23
│ └─┬ @storybook/ui 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
└─┬ @storybook/manager-webpack4 6.4.0-beta.23
├─┬ @storybook/core-client 6.4.0-beta.23
│ └─┬ @storybook/ui 6.4.0-beta.23
│ └─┬ @storybook/components 6.4.0-beta.23
│ └─┬ @types/react-syntax-highlighter 11.0.5
│ └── @types/react 17.0.33
└─┬ @storybook/ui 6.4.0-beta.23
└─┬ @storybook/components 6.4.0-beta.23
└─┬ @types/react-syntax-highlighter 11.0.5
└── @types/react 17.0.33 Update: I have opened another PR to fix this: #16630 |
Refs: //github.com/storybookjs/storybook/pull/16629,//github.com/storybookjs/storybook/pull/16630,//github.com/vuejs/core/issues/1033,//github.com/storybookjs/storybook/issues/12505,//github.com/XavierChevalier/ewokify-app/runs/4326759026?check_suite_focus=true
Issue: vue and react type conflicts
What I did
Remove react from package.json to avoid vue 3 types conflict
How to test
If your answer is yes to any of these, please make sure to include it in your PR.
This solves this problem:
the
HTMLAttributes
from@vue/runtime-dom
will be overriten by@types/react
.Currently the solutionn is to disable react types in your
tsconfig.json
file:And create ann empty
.sink.d.ts
file i your directory.