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: peer dependency issue with npm publish #1628

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

kabaros
Copy link
Collaborator

@kabaros kabaros commented Nov 5, 2024

npm publish seems to be failing on CI on master - The error is pointing to conflicting versions of @types/react - this PR attempts to fix it (without adding a module resolution ). It seems like the incorrect version of @types/react (v17) is coming from selector-bar, which was using an outdated testing-library version. This change removes that dependency since components don't need their own test-library versions - a side effect of that was also that @testing-library/jest was being hoisted to the top-level and was working there, even though it's not installed.

The old docusaurus version we use, also points to an outdated @types/react version but I think adding a dev dependency at the top level should sort it.

PS: I don't know why this issue only appears on npm publish.

@kabaros kabaros requested a review from a team as a code owner November 5, 2024 13:56
@kabaros kabaros requested a review from a team November 5, 2024 13:56
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Nov 5, 2024

🚀 Deployed on https://pr-1628--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify November 5, 2024 14:00 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 5, 2024 14:13 Inactive
Copy link
Contributor

@KaiVandivier KaiVandivier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me 👍

@kabaros kabaros merged commit 1319654 into master Nov 5, 2024
18 checks passed
@kabaros kabaros deleted the fix/publish-fail branch November 5, 2024 15:32
dhis2-bot added a commit that referenced this pull request Nov 5, 2024
# [9.13.0](v9.12.0...v9.13.0) (2024-11-05)

### Bug Fixes

* peer dependency issue with npm publish ([#1628](#1628)) ([1319654](1319654))
* **translations:** sync translations from transifex (master) ([7f22330](7f22330))

### Features

* update react peer dependency to react@18 ([#1624](#1624)) ([5d3c2a4](5d3c2a4))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 9.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

dhis2-bot added a commit that referenced this pull request Nov 21, 2024
# [10.0.0-alpha.8](v10.0.0-alpha.7...v10.0.0-alpha.8) (2024-11-21)

### Bug Fixes

* peer dependency issue with npm publish ([#1628](#1628)) ([1319654](1319654))
* update calendar tests for react 18 ([98831a7](98831a7))
* update testing-library for selector-bar ([893024d](893024d))
* **translations:** sync translations from transifex (master) ([d89ce94](d89ce94))
* **translations:** sync translations from transifex (master) ([7f22330](7f22330))

### Features

* add data sharing to sharing dialog [LIBS-677] ([#1629](#1629)) ([7e15c7f](7e15c7f))
* make input field clearable and add prefix icon ([#1619](#1619)) ([7f87fb4](7f87fb4))
* update react peer dependency to react@18 ([#1624](#1624)) ([5d3c2a4](5d3c2a4))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.0.0-alpha.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants