0

Im new to NX, created a library "designsystem-angular-header" that depends on another library "designsystem-angular"

When I try to build the compiler goes to the dist folder to search for html files for the dependency? Only there are none, only typescript files ... Has anyone had some experience with this?

I have an out of the box Angular 12 tsconfig settings, with the exception of

"angularCompilerOptions": {
    "enableIvy": false
  }

The error is saying in short that it cant find the html files, which I find to be a bit strange that it is looking for those in the first place...

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.
...

enter image description here My versions are : "@angular/cli": "12.0.0", "@nrwl/cli": "12.3.3", Node: 12.14.1 npm: 6.12.0

keygjones
  • 69
  • 1
  • 4
  • Do you have @husbanken defined in nx.json? โ€“ robbieAreBest May 27 '21 at 13:38
  • @robbieAreBest, thanks for the reply :) No I have "npmScope": "husbanken", ... tried changing it to "@husbanken", that did not work ... should I have it somewhere else? โ€“ keygjones May 27 '21 at 15:05
  • Enabling partial Ivy did the trick "angularCompilerOptions": { "compilationMode": "partial" }ยจ, but still dont understand why it was searching in dist for htmls :) โ€“ keygjones Jun 01 '21 at 06:47

1 Answers1

0

you won't find html files on dist anyway, that's how it is

Gui Seek
  • 421
  • 4
  • 5