Skip to content
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

Open
renanfeluck opened this issue Jan 6, 2021 · 5 comments
Open

Build error {}.DEBUG = namespaces; #866

renanfeluck opened this issue Jan 6, 2021 · 5 comments

Comments

@renanfeluck
Copy link

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

  • OS/Environment:
  • @sls-next/serverless-component version: 1.18.0
  • Next.js version: 10.0.4
@sibelius
Copy link

sibelius commented Jan 8, 2021

it looks related to debug-js/debug#467

it could be a bug on dotenv-webpack plugin

@sonnguy
Copy link

sonnguy commented Feb 4, 2021

@renanfeluck any update? have you resolved this issue?

@lid3rs
Copy link

lid3rs commented Feb 24, 2021

same problem

@hedrall
Copy link

hedrall commented Mar 12, 2021

same problem( Next.js version: 10.0.8 )

@noel-reissig-xops
Copy link

I have the same error using Docusaurus 2.2.0 and Node 18.18, any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants