react
react copied to clipboard
[Bug]: Uncaught TypeError: Class extends value undefined is not a constructor or null
Prerequisites
- [x] I have checked that
@thirdweb-dev/reactand the@thirdweb-dev/sdkare on the latest stable version and the bug still exists. - [x] I have checked existing issues and I was unable to find a duplicate of this.
Describe the bug After following this tutorial: https://www.youtube.com/watch?v=nXMF7aeHXuo within the first 3-4 minutes of the video when i try to run the react app i'm getting a console log error "Uncaught TypeError: Class extends value undefined is not a constructor or null"
Expected behavior Run the react app successfully
Screenshots
Error:

Code that caused this error (line 9 and 11):

Also code that caused this error (line 9-12, line 23):

Package versions:
-
@thirdweb-dev/react: [^2.4.8] -
@thirdweb-dev/sdk: [^2.3.27] -
node: [v16.15.0] -
typescript(if applicable): [^4.6.3]
Reproduction link None
Additional context None