-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Build error {}.DEBUG = namespaces; #866
Comments
it looks related to debug-js/debug#467 it could be a bug on dotenv-webpack plugin |
@renanfeluck any update? have you resolved this issue? |
same problem |
same problem( Next.js version: 10.0.8 ) |
I have the same error using Docusaurus 2.2.0 and Node 18.18, any suggestion? |
I chased this one down for several hours and found a workaround outline by this comment: rohit-gohri/redocusaurus#236 (comment) From the linked discussion:
|
Describe the bug
I'm getting this error when I try to run "serverless". The next build is working fine.
Build error occurred
.../.next/serverless/pages/dashboard/DashboardView.js:41448
{}.DEBUG = namespaces;
Screenshots/Code/Logs
This is the generated code that is causing the error
function save(namespaces) {
if (null == namespaces) {
// If you set a process.env field to null or undefined, it gets cast to the
// string 'null' or 'undefined'. Just delete instead.
delete {}.DEBUG;
} else {
{}.DEBUG = namespaces;
}
Versions
The text was updated successfully, but these errors were encountered: