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
{{ message }}
Repository navigation
"Cannot read property 'match' of undefined" on ng build --prod after updating to 6.0.0-rc.0 #10141
Install @angular/cli@6.0.0-rc.0 globally and locally
Run ng update @angular/cli --migrate-only --from=1.7.1 inside project to update
Run ng build --prod
Observed behavior
$ ng build --prod
Cannot read property 'match' of undefined
TypeError: Cannot read property 'match' of undefined
at Object.normalize (D:\sandbox\1.7-project\node_modules\@angular-devkit\build-angular\node_modules\@angular-devkit\core\src\virtual-fs\path.js:178:14)
at options.fileReplacements.forEach (D:\sandbox\1.7-project\node_modules\@angular-devkit\build-angular\src\browser\index.js:99:55)
at Array.forEach (<anonymous>)
at BrowserBuilder.buildWebpackConfig (D:\sandbox\1.7-project\node_modules\@angular-devkit\build-angular\src\browser\index.js:98:34)
at Observable.rxjs_1.Observable.obs [as _subscribe] (D:\sandbox\1.7-project\node_modules\@angular-devkit\build-angular\src\browser\index.js:31:38)
at Observable.subscribe (D:\sandbox\1.7-project\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\Observable.js:162:69)
Desired behavior
ng build --prod builds successfully.
Mention any other details that might be useful (optional)
This does not happen on a new rc.0 project.
A temporary workaround is to search your new angular.json file for
Activity
filipesilva commentedon Apr 4, 2018
Fixed via angular/devkit#620, to be available on the next release.
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.