Angular AOT更改组件文件名添加.ngfactory在include上创建url引用错误

Angular AOT更改组件文件名添加.ngfactory在include上创建url引用错误,angular,angular2-aot,angular-aot,Angular,Angular2 Aot,Angular Aot,因此AOT会将我的组件的名称更改,例如my component.component.ts更改为my component.component.ngfactory.ts,但在生成的文件中包含这样做的文件 import*作为从“/my component.component”导入的import2 这是错误的,因为该文件不再存在 如果我将文件的导入更改为 import*as import2 from./联系我们.component.ngfactory' 然后我可以看到我的IDE如何停止抱怨,因为这个文件

因此AOT会将我的组件的名称更改,例如
my component.component.ts
更改为
my component.component.ngfactory.ts
,但在生成的文件中包含这样做的文件

import*作为从“/my component.component”导入的import2

这是错误的,因为该文件不再存在

如果我将文件的导入更改为

import*as import2 from./联系我们.component.ngfactory'

然后我可以看到我的IDE如何停止抱怨,因为这个文件确实存在

现在是否有人知道如何使AOT编译器不修改文件名或相应地修改导入?如果您需要查看任何配置文件,请告诉我

这就是我的tsconfig的样子

{
  "compilerOptions": {
    "baseUrl": "",
    "declaration": false,
    "target": "es5",
    "module": "es2015",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": ["es2015", "dom"],
    "noImplicitAny": false,
    "suppressImplicitAnyIndexErrors": true,
    "typeRoots": [
      "./node_modules/@types/"
    ],
    "outDir": "dist/out-tsc"
  },

  "files": [
    "app/app.module.ts",
    "main-aot.ts"
  ],

  "angularCompilerOptions": {
   "genDir": "../aot",
   "skipMetadataEmit" : true
 }
}
接收到的错误是

Error at C:/Projects/my-project/aot/app/app.module.ngfactory.ts:74:27: Cannot find module './components/my-component.component'.