-
Notifications
You must be signed in to change notification settings - Fork 3.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
fix(notification-center-vue): fixed react, react dom dependencies issue #2515
Conversation
"react-dom": "^17.0.1" | ||
}, | ||
"peerDependencies": { | ||
"vue": ">=3.0.0" |
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.
vue should be defined as the peer: #2406
"react": "^17.0.1", | ||
"react-dom": "^17.0.1" |
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.
these should be defined as the direct dependencies, because in the notification-center
they are defined as the peer
@@ -54,6 +54,7 @@ | |||
"rollup": "^3.7.3", | |||
"rollup-plugin-gzip": "^3.1.0", | |||
"rollup-plugin-node-externals": "^5.0.2", | |||
"rollup-plugin-peer-deps-external": "^2.2.4", |
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.
do not include the peer dependencies in the build
"typescript": "~4.7.4", | ||
"vite": "^4.0.0", | ||
"vue": "^3.2.45", |
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.
we have to define it as dev dep for the development
What change does this PR introduce?
Fixes the issue with not found
react, react-dom
dependencies.More info: https://discord.com/channels/895029566685462578/1064522952672022559
Why was this change needed?
To fix the above-described issue.
Other information (Screenshots)
Tested in Vue/Vite, Vue CLI, Vue/Quasar apps: