Add support for Angular 13
icecoldfire opened this issue · 0 comments
icecoldfire commented
Current behavior
Compiling of the package fails with following error when using Angular 13:
file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:3426
throw new Error(`Symbol ${ref.debugName} declared in ${getSourceFile(ref.node).fileName} is not exported from ${specifier} (import into ${context.fileName})`);
^
Error: Symbol HttpClientModule declared in C:/x/node_modules/@angular/common/http/http.d.ts is not exported from @angular/common/http (import into C:/x/src/app/common/common.module.ts)
at AbsoluteModuleStrategy.emit (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:3426:13)
at ReferenceEmitter.emit (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:3376:32)
at toR3Reference (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:8108:22)
at NgModuleDecoratorHandler._toR3Reference (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:9414:14)
at file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:9233:50
at Array.map (<anonymous>)
at NgModuleDecoratorHandler.analyze (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:9233:32)
at TraitCompiler.analyzeTrait (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:6672:30)
at analyze (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:6643:34)
at TraitCompiler.analyzeClass (file:///C:/x/node_modules/@angular/compiler-cli/bundles/index.js:6660:9)
Expected behavior
Compilation doesn't fail
How do you think that we should fix this?
export the debugName property
Minimal reproduction of the problem with instructions
Update to latest angular version.
Environment
@ngx-translate/core: "^13.0.0",
@ngx-translate/http-loader: "^6.0.0",
Angular version: 13.0.0
For Tooling issues:
- Node version: v16.13.0
- Platform: Windows
Others: