Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 在NX可构建库中查找html文件的角度编译器_Angular_Typescript_Build_Nomachine Nx - Fatal编程技术网

Angular 在NX可构建库中查找html文件的角度编译器

Angular 在NX可构建库中查找html文件的角度编译器,angular,typescript,build,nomachine-nx,Angular,Typescript,Build,Nomachine Nx,我是NX新手,创建了一个依赖于另一个库“designsystem angular”的库“designsystem angular header” 当我尝试构建时,编译器会转到dist文件夹来搜索依赖项的html文件?只有没有,只有typescript文件。。。有人有过这样的经验吗 我有一个现成的角度12 tsconfig设置,除了 "angularCompilerOptions": { "enableIvy": false } 简而言之,这个

我是NX新手,创建了一个依赖于另一个库“designsystem angular”的库“designsystem angular header”

当我尝试构建时,编译器会转到dist文件夹来搜索依赖项的html文件?只有没有,只有typescript文件。。。有人有过这样的经验吗

我有一个现成的角度12 tsconfig设置,除了

"angularCompilerOptions": {
    "enableIvy": false
  }
简而言之,这个错误是说它找不到html文件,我觉得有点奇怪,它是在寻找那些放在首位

nx run designsystem-angular-header:build:production 

Building entry point '@husbanken/designsystem-angular-header'

 Compiling TypeScript sources through NGC
ERROR: Cannot read file C:\Users\hoko\IdeaProjects\hb-nx-frontend\husbanken\dist\libs\designsystem-angular\lib\accordion\accordion.component.html.
...
我的版本是: “@angular/cli”:“12.0.0”, “@nrwl/cli”:“12.3.3”, 节点:12.14.1
npm:6.12.0

您是否在nx.json中定义了@husbanken?@robbieAreBest,感谢您的回复:)不,我有“npmScope”:“husbanken”。。。尝试将其更改为“@husbanken”,但无效。。。我应该把它放在其他地方吗?启用部分常春藤可以实现“angularCompilerOptions”:{“CompileMode”:“partial”}–但仍然不明白它为什么要在dist中搜索htmls:)