using npm debug module breaks build (overriding any property on process.env)
July 23, 2019 at 3:47pmThe ZEIT community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →
using npm debug module breaks build (overriding any property on process.env)
July 23, 2019 at 3:47pmI'm getting this error:
> Build error occurred/tmp/391c35ee/.next/serverless/pages/about.js:23531"MyModule*" = namespaces;^^^^^^^^^^ReferenceError: Invalid left-hand side in assignmentat createScript (vm.js:80:10)at Object.runInThisContext (vm.js:139:10)at Module._compile (module.js:616:28)at Object.Module._extensions..js (module.js:663:10)at Module.load (module.js:565:32)at tryModuleLoad (module.js:505:12)at Function.Module._load (module.js:497:3)at Module.require (module.js:596:17)at require (internal/module.js:11:18)at hasCustomAppGetInitialProps (/tmp/391c35ee/node_modules/next/dist/build/utils.js:5:1561)error Command failed with exit code 1.
I've tracked this odd bug down to these lines in the
debug
packageMy current workaround is to just use a different debug module which doesn't mess with
process.env
Any other ideas?
No messages yet
This channel has been archived