-
Notifications
You must be signed in to change notification settings - Fork 36
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
'SideNavigation' cannot be used as a JSX component. #606
Comments
Thanks @chestonchow for reporting this issue. We will have a look today. Does this issue happen after you update any dependencies? |
Hi @chestonchow, This issue is related to the new major version 18 of @types/react released 3 days ago. Some of the dependencies NorthStar is using are still relying on v17. See: While we are continuing working on upgrading NorthStar to be compatible with new React 18,
We will update this thread if we find better solution for this issue. |
Hi Jessie, Thanks for following up! I didn't update to use React 18 yet as per my post earlier when the error came up, which is what confuses me. I might just put in @ts-ignore for now. Thanks, |
What a pain. Something has gone wrong with the typings for React 18 and the way that libraries specify the types being used. This commit avoids/suppresses the issue for now. See: - facebook/react#24304 - aws/aws-northstar#606
Would it make sense to change the dependencies on types to be optional peer deps? facebook/react#24304 (comment) |
Hi there,
I have this following error just by importing it and it doesn't seem any other code on top of this is causing this error. Can I get some help for this?
Thanks,
Cheston
Here are my package.json dependencies
The text was updated successfully, but these errors were encountered: