You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
new webpack.ProvidePlugin({
self: 'self',
}),
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:
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: