This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Description "@angular/cli": "1.3.0-rc.5"
"typescript": "2.4.2" ( and 2.3.4)
Workaround : ng build --preserve-symlinks allows to work with npm linked modules,
and remove tsconfig path entries
Issue :
BrowserAnimationsModule is completely removed from main.js bundle
which leads to issue in _createProviderInstance
here: https://github.com/angular/angular/blob/39b92f7e546b8bdecc0e08c915d36717358c122b/packages/core/src/view/ng_module.ts#L110
because ctor will be undefined
How to reproduce
ng new test-bob
in app.module.ts add
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
and
imports : [
BrowserModule ,
BrowserAnimationsModule
] ,
in tsconfig.app.json add line to paths
"types" : [],
"paths" : {
"@angular/*" : [" ../node_modules/@angular/*" ]
}
Why add this kind of mapping?
It is needed for successful build when you work with linked angular modules
Reactions are currently unavailable
"@angular/cli": "1.3.0-rc.5"
"typescript": "2.4.2" ( and 2.3.4)
Workaround:
ng build --preserve-symlinksallows to work withnpm linked modules,and remove tsconfig path entries
Issue:
BrowserAnimationsModule is completely removed from
main.jsbundlewhich leads to issue in
_createProviderInstancehere: https://github.com/angular/angular/blob/39b92f7e546b8bdecc0e08c915d36717358c122b/packages/core/src/view/ng_module.ts#L110
because
ctorwill be undefinedHow to reproduce
ng new test-bobapp.module.tsaddimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';and
tsconfig.app.jsonadd line topathsWhy add this kind of mapping?
It is needed for successful build when you work with linked angular modules