Uncaught TypeError: Cannot read properties of null (reading 'useEffect') #2017
-
Hi All, any idea why I can't get past the error noted in the title? Please no probing about "why" I am or I am not doing x...only need help with the error :) Code:
cloudscape.bundle.js is produced via webpack and excludes react and react-dom, it exports this object:
|
Beta Was this translation helpful? Give feedback.
Answered by
connorlanigan
Feb 28, 2024
Replies: 1 comment 1 reply
-
The error you mention likely happens because React is not available ( |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
just-boris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error you mention likely happens because React is not available (
useEffect
is a function imported from React). You mentioned that you excluded React and ReactDOM from your bundle, I'd recommend that you keep them included in your bundle since Cloudscape depends on React.