Closed ricardograca closed 2 years ago
latest CLI does provide a meaningful error:
{ Error: File not found with singular glob: C:/Users/atara/repro/aurelia_project/environments/dev.js (if this was purposeful, use `allowEmpty` option)
at Glob.<anonymous> (C:\Users\atara\repro\node_modules\glob-stream\readable.js:84:17)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at Glob.emit (events.js:211:7)
at Glob._finish (C:\Users\atara\repro\node_modules\glob\glob.js:197:8)
at done (C:\Users\atara\repro\node_modules\glob\glob.js:182:14)
at Glob._processSimple2 (C:\Users\atara\repro\node_modules\glob\glob.js:688:12)
at C:\Users\atara\repro\node_modules\glob\glob.js:676:10
at Glob._stat2 (C:\Users\atara\repro\node_modules\glob\glob.js:772:12)
at lstatcb_ (C:\Users\atara\repro\node_modules\glob\glob.js:764:12)
or you can modify your local CLI cli-options.js
line 35:
let env = this.getFlagValue('env') || process.env.NODE_ENV || 'dev';
@3cp can be closed
I'm submitting a bug report
Please tell us about your environment:
Operating System: Ubuntu 16.04.5
Node Version: 8.9.3
NPM Version: 6.1.0
Browser: all
Language: ESNext
Loader/bundler: SystemJS
Current behavior:
I've renamed all environments to their more verbose counterparts:
dev
->development
, etc. If I don't specify an environment name when attempting to run any command this results in the following unrelated error message (example forbuild
):There should be a message explaining what the actual error is. It seems like currently all errors are eaten by this unhelpful error message. Possibly related with https://github.com/gulpjs/undertaker/issues/80.