我正在使用 angular 4.4.4webpack 3.8.1@angular/compiler/cli 4.4.4 (升级后)

使用 ncu - npm check updates 升级节点模块包后,出现此错误

/home/razmjo/workstation/jobsaf-website/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:71抛出新的错误(在@ ngtools / webpack的配置中'必须指定'tsConfigPath . ');

即使我已根据此设置正确 tsConfigPathhttps://github.com/angular/angular-cli/tree/master/packages/%40ngtools/webpack

Update :配置文件(为了清楚起见,我删除了很多东西)

const AotPlugin = require('@ngtools/webpack').AotPlugin;
module.exports = function (options) {
  return webpackMerge(commonConfig({env: ENV}), {
    module: {
      rules: [
        {
          test: /\.ts$/,
          loader: '@ngtools/webpack'
        },
      ]
    },
    plugins: [
      new AotPlugin({
        tsConfigPath: 'tsconfig.webpack.json',
        entryModule: 'src/app.module#AppModule',
        sourceMap: true
      }),
    ],
  });
}