Closed iliyahanev closed 12 months ago
Angular CLI: 11.2.0 Node: 12.18.0 OS: darwin x64 Angular: 11.2.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... localize, platform-browser, platform-browser-dynamic, router Ivy Workspace: Yes Package Version --------------------------------------------------------- @angular-devkit/architect 0.1102.0 @angular-devkit/build-angular 0.1102.0 @angular-devkit/core 11.2.0 @angular-devkit/schematics 11.2.0 @schematics/angular 11.2.0 @schematics/update 0.1102.0 rxjs 6.6.3 typescript 4.1.5 node ng-add-pug-loader.js ****/my-project/ng-add-pug-loader.js:12 if (err) throw err; ^ [Error: ENOENT: no such file or directory, open 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js'] { errno: -2, code: 'ENOENT', syscall: 'open', path: 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js' } Since I am unable to create a pull-request I am writing the new paths here. The new angular webpack config paths are: const TARGET_COMMON_CONFIG_PATH = 'node_modules/@angular-devkit/build-angular/src/webpack/configs/common.js'; const TARGET_TYPESCRIPT_CONFIG_PATH = 'node_modules/@angular-devkit/build-angular/src/webpack/configs/common.js';
This project is no longer maintained. Check out ngx-pug-builders to add support to pug files to your Angular project.