aws-northstar icon indicating copy to clipboard operation
aws-northstar copied to clipboard

Installation fails for react version 18.2.0

Open hemalgadhiya opened this issue 3 years ago • 2 comments
trafficstars

Describe the bug The installation fails for react version 18.2.0

Versions Which version of aws-northstar npm package is installed? version 1.3.18

Screenshots If applicable, add screenshots to help explain your problem. Screen Shot 2022-09-22 at 12 02 52 PM

Desktop (please complete the following information):

  • OS: MacOs
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

hemalgadhiya avatar Sep 22 '22 16:09 hemalgadhiya

Hi @hemalgadhiya,

This issue is related to breaking changes in the major version 18 of @types/react. Some of the dependencies NorthStar is using are still relying on v17.

See: @types/react@18 break @types/styled-components @types/react@18 breaks "everything".

While we are working on NorthStar V2, please check whether you are using React version 17 and use one of the following temporary fixes to suppress the build error:

  1. use @ts-ignore for the block; or
  2. add resolution to your package.json if you are using yarn:
  "resolutions": {
    "@types/react": "^17",
    "@types/react-dom": "^17"
  },

Thank you.

jessieweiyi avatar Sep 26 '22 09:09 jessieweiyi

Thanks

hemalgadhiya avatar Sep 30 '22 14:09 hemalgadhiya