I just created a next project, and when I start the server, I have this error, but without more information. I didn't find any solution :(
TypeError: (0 , react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV) is not a function
Reported error
As @ggnoredo has said you only get the error when your "NODE_ENV" environment variable is set to "production". So on windows the error can be fixed by running setx NODE_ENV dev
and on linux and macos by runnuing export NODE_ENV=dev
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With