danguilherme / ng-cli-pug-loader

:sparkles: Angular schematics to add .pug to your project
GNU General Public License v3.0
56 stars 17 forks source link

Angular CLI and builder webpack config paths changed #39

Closed iliyahanev closed 12 months ago

iliyahanev commented 3 years 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';
danguilherme commented 12 months ago

This project is no longer maintained. Check out ngx-pug-builders to add support to pug files to your Angular project.