-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels