-
Notifications
You must be signed in to change notification settings - Fork 1
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: self is not defined #59
Comments
adding in my webpack.config.js:
Works :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The bundling is going good, i got my three: cjs, umd and esm bundle's file.
But when i'm trying to load my app with next.js I got this error:
"ReferenceError: self is not defined".
Next.js seems to load the common-js package on server.
The error is coming from the way webpack is loaded in the bundle itself:
I tried everything available online.
Adding:
But still not working...
Do you think the problem is coming from webpack directly or from the way you used it in the library ?
Thank you.
The text was updated successfully, but these errors were encountered: