Skip to content

Commit ad450e3

Browse files
devversionclydin
authored andcommitted
build: add missing path mapping for build-webpack import causing lint error
I suspect there were some versioning changes with the e.g. `hoist = false` setting in npmrc; so eslint now starts failing about an import from `webpack-server.ts` resulting in unnecessary type cast lint errors. The existing mapping didn't work due to the underscore conversion, so this makes sense, and fixing the path mappings works.
1 parent 417ef7a commit ad450e3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/angular_devkit/build_angular/src/builders/dev-server/webpack-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export function serveWebpackBrowser(
263263
...buildEvent,
264264
baseUrl: serverAddress,
265265
stats: generateBuildEventStats(webpackRawStats, browserOptions),
266-
};
266+
} as DevServerBuilderOutput;
267267
}),
268268
);
269269
}),

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@angular-devkit/schematics/tools": ["./packages/angular_devkit/schematics/tools/index"],
2626
"@angular-devkit/schematics/testing": ["./packages/angular_devkit/schematics/testing/index"],
2727
"@angular-devkit/architect/testing": ["./packages/angular_devkit/architect/testing/index"],
28+
"@angular-devkit/build-webpack": ["./packages/angular_devkit/build_webpack"],
2829
"@angular-devkit/*": ["./packages/angular_devkit/*/src"],
2930
"@angular/*": ["./packages/angular/*/src"],
3031
"@angular/build/private": ["./packages/angular/build/src/private"],

0 commit comments

Comments
 (0)