Skip to content
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

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

LetItRock
Copy link
Contributor

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:

Screenshot 2023-01-17 at 11 14 23

"react-dom": "^17.0.1"
},
"peerDependencies": {
"vue": ">=3.0.0"
Copy link
Contributor Author

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

Comment on lines +25 to +26
"react": "^17.0.1",
"react-dom": "^17.0.1"
Copy link
Contributor Author

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",
Copy link
Contributor Author

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",
Copy link
Contributor Author

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

@LetItRock LetItRock requested a review from scopsy January 17, 2023 10:34
@LetItRock LetItRock merged commit 117398e into next Jan 17, 2023
@LetItRock LetItRock deleted the fix-deps-notification-center-vue branch January 17, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants