Closed orpuig closed 5 years ago
Any clue on this?
I had the similar error while building for prod and it was because of corrupted @angular/cdk package. Since you already have the @angular/cdk included
ng --version
rm -rf node_modules
and run fresh npm install
. The build for prod worked as expected!This seems to be the cause.
Issue type
I'm submitting a ...
Issue description
Current behavior:
When building (
ng build -c prod
) with producion flags (see below) we get many errors, all of the same kind (see also below). We also get many warnings.The compilation spends unusual amount of time
building modules
, chunking...79% chunk modules optimization ModuleConcatenationPlugin
...and on manychunk asset optimization
.It started when updating to Nebular
3.4.2
from3.1.0
. When serving (ng server
) everything works smoothly.Output errors:
Build configuration in angular.json:
In case it may be useful, we receive many warning of this kind:
"export 'NbTriggerStrategyBuilderService' (imported as 'i8') was not found in '@nebular/theme/components/cdk/overlay/overlay-trigger'
Expected behavior:
Building without errors.
Steps to reproduce:
Not sure there is an easy way to do so.
Other information:
npm, node, OS
npm list