You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React 19 removes the global JSX namespace - replace with React.JSX which works with both React 19
and 18. Additionally address type error with new versions of react-router-dom's `navigate` function
returning a promise.
Fixes#895Fixes#896
Describe the bug
Generated typescript hooks library fails to compile
Expected Behavior
Should compile
Current Behavior
Fails to compile
Reproduction Steps
Follow getting started guide https://aws.github.io/aws-pdk/getting_started/your_first_aws_pdk_project.html#creating-our-aws-infrastructure
Possible Solution
React 19 was released recently and the hooks library doesn't pin the version. React 19 removes the global JSX namespace: https://react.dev/blog/2024/04/25/react-19-upgrade-guide#the-jsx-namespace-in-typescript
We can either pin to react 18 or investigate if
React.JSX
works in both 18 and 19.Additional Information/Context
Current workaround in pin react at version 18 in your
.projenrc.ts
:PDK version used
0.25.14
What languages are you seeing this issue on?
Typescript
Environment details (OS name and version, etc.)
osx
The text was updated successfully, but these errors were encountered: