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
Is it possible to make this error optional? process.env.NEXT_PRIVATE_LOCAL_WEBPACK is not set to true, please set it to true, and "npm install webpack"
Next.js has updated the internal bundled webpack to v5.90.0. I tested against this version previously so I'm fairly confident it will work fine in my apps. I'm looking to reduce the number of manual configurations needed and to not manage a webpack dep if I don't have to.
I'm willing to accept the risks of this potentially breaking in the future as the plugin uses more Webpack APIs. At that point in time, I'll go back to using the env var.
Suggested solution
Perhaps have a config option that will prevent the plugin from throwing the error for advanced users who understand the risks. Call it ignorePrivateLocalWebpackError?
It is not optional. Its not about the version of webpack next.js has, its that next.js bundles it and destroys exports. I cannot get webpack/lib/some/deep/internal/module when its next.js becasue "webpack" its just 1 file called bundled5.js
Clear and concise description of the problem
Is it possible to make this error optional?
process.env.NEXT_PRIVATE_LOCAL_WEBPACK is not set to true, please set it to true, and "npm install webpack"
Next.js has updated the internal bundled webpack to v5.90.0. I tested against this version previously so I'm fairly confident it will work fine in my apps. I'm looking to reduce the number of manual configurations needed and to not manage a webpack dep if I don't have to.
I'm willing to accept the risks of this potentially breaking in the future as the plugin uses more Webpack APIs. At that point in time, I'll go back to using the env var.
Suggested solution
Perhaps have a config option that will prevent the plugin from throwing the error for advanced users who understand the risks. Call it
ignorePrivateLocalWebpackError
?I'm happy to open a PR if this idea sounds good.
Alternative
None
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: