-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
ReferenceError: React is not defined in nextjs / blitzjs #62
Comments
FYI, this is indeed faster than regular webpack 5 on nextjs@10.0.1. The speed improvement is noticable (I don't count it though). |
OK, I just added And another error sprouted, I am using blitzjs though, so maybe following error message are not applicable to regular nextjs project:
|
Thanks for the issue @rizkyramadhan
esbuild-loader deals with interfacing esbuild from Webpack to apply transformations and doesn't concern itself with dependency resolution. To implicitly resolve dependencies in your build, you can use the ProvidePlugin built-in to Webpack. The second error doesn't seem relevant to esbuild-loader either. |
When using nextjs using this next.config.js:
and using webpack@5.5.1 with this added on my package.json:
This is the full error message:
The text was updated successfully, but these errors were encountered: