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

dependency issues #1848

Merged
merged 8 commits into from
Sep 17, 2021
Merged

dependency issues #1848

merged 8 commits into from
Sep 17, 2021

Conversation

emilyjablonski
Copy link
Collaborator

@emilyjablonski emilyjablonski commented Sep 16, 2021

Our dependency warnings on fresh install went from 3 --> 23 after the tailwind/node/etc upgrade. I think we just missed a number of packages that also needed to be upgraded as we moved to React 17. Upgraded the packages I could which involved some tiny code updates in some places, I commented on all of them.

After this PR we have 5 warnings remaining, 4 of which we cannot fix ourselves. They are:



  • warning "workspace-aggregator-e0d01dfa-ee0d-47ef-8d50-0f1c5d0df64e > @bloom-housing/ui-components > @storybook/api > @reach/router@1.3.4" has incorrect peer dependency "react@15.x || 16.x || 16.4.0-alpha.0911da3".
  • warning "workspace-aggregator-e0d01dfa-ee0d-47ef-8d50-0f1c5d0df64e > @bloom-housing/ui-components > @storybook/api > @reach/router@1.3.4" has incorrect peer dependency "react-dom@15.x || 16.x || 16.4.0-alpha.0911da3".
  • warning "workspace-aggregator-e0d01dfa-ee0d-47ef-8d50-0f1c5d0df64e > @bloom-housing/ui-components > @storybook/api > @reach/router > create-react-context@0.3.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
  • There's an open issue for this here: Release new version compatible with React 17 reach/router#429 Seems like Storybook is on it in terms of moving off of reach/router if they don't update to React 17

  • warning "workspace-aggregator-e0d01dfa-ee0d-47ef-8d50-0f1c5d0df64e > @bloom-housing/ui-components > @storybook/react > @storybook/react-docgen-typescript-plugin > react-docgen-typescript@2.1.0" has incorrect peer dependency "typescript@>= 4.3.x".
  • Upgrading typescript just causes a different dependency warning from nest for typescript then being too high of a version for the nest version we have, so upgrading typescript seems like a larger issue outside of this PR

To test you can fresh yarn install on dev and then on this branch!

@emilyjablonski emilyjablonski added the wip This PR is not ready for review, do not review it's a “Work In Progress” label Sep 16, 2021
@netlify
Copy link

netlify bot commented Sep 16, 2021

✔️ Deploy Preview for dev-storybook-bloom ready!

🔨 Explore the source changes: e5c7d43

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-storybook-bloom/deploys/614509d9e4c4240007e25406

😎 Browse the preview: https://deploy-preview-1848--dev-storybook-bloom.netlify.app

@netlify
Copy link

netlify bot commented Sep 16, 2021

✔️ Deploy Preview for dev-partners-bloom ready!

🔨 Explore the source changes: e5c7d43

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-partners-bloom/deploys/614509d903999a00075e05d0

😎 Browse the preview: https://deploy-preview-1848--dev-partners-bloom.netlify.app

@netlify
Copy link

netlify bot commented Sep 16, 2021

✔️ Deploy Preview for dev-bloom ready!

🔨 Explore the source changes: e5c7d43

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-bloom/deploys/614509d91db2a20008c2c5cf

😎 Browse the preview: https://deploy-preview-1848--dev-bloom.netlify.app

@emilyjablonski emilyjablonski added ready for review and removed wip This PR is not ready for review, do not review it's a “Work In Progress” labels Sep 17, 2021
@@ -66,7 +66,6 @@ export function getColDefs(maxHouseholdSize: number, countyCode: string) {
width: 150,
minWidth: 120,
pinned: "left",
type: "leftAligned",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No longer exists and is default behavior anyway

@@ -1,12 +1,8 @@
import "@testing-library/jest-dom/extend-expect"

import { configure } from "enzyme"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We weren't actually using enzyme anymore

@@ -1,3 +1,5 @@
@use "sass:math";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changes here needed from the ag-grid update (the old division way is deprecated now)

Copy link
Collaborator

@jaredcwhite jaredcwhite left a comment

Choose a reason for hiding this comment

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

Thanks for digging into this. Changes look good to me! (just one question)

swr@^0.5.5:
version "0.5.5"
resolved "https://registry.yarnpkg.com/swr/-/swr-0.5.5.tgz#c72c1615765f33570a16bbb13699e3ac87eaaa3a"
integrity sha512-u4mUorK9Ipt+6LEITvWRWiRWAQjAysI6cHxbMmMV1dIdDzxMnswWo1CyGoyBHXX91CchxcuoqgFZ/ycx+YfhCA==
dependencies:
dequal "2.0.2"

swr@^1.0.1:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder how we still have two different versions of SWR? Should be the same one used for partners and public, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmmmmmm that is weird! I'll take a look, thanks for noticing :)

Copy link
Collaborator

@seanmalbert seanmalbert left a comment

Choose a reason for hiding this comment

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

Looks good! For the UnitForm updates, I made a minor change to use the existing check for defaultUnit.

@seanmalbert seanmalbert merged commit a6c4ab5 into dev Sep 17, 2021
seanmalbert added a commit to CityOfDetroit/bloom that referenced this pull request Jun 23, 2022
* upgrade ag-grid

* upgrade swr

* upgrade accordion

* upgrade react-focus-lock

* add missing storybook peers, remove enzyme

* missing peer on babel

* minor update to use existing check for defaultUnit

Co-authored-by: Sean Albert <smabert@gmail.com>
@emilyjablonski emilyjablonski deleted the dependency-errors branch July 20, 2022 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants