Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Add support for Angular 13 #101

Closed
icecoldfire opened this issue Nov 5, 2021 · 0 comments
Closed

Add support for Angular 13 #101

icecoldfire opened this issue Nov 5, 2021 · 0 comments

Comments

@icecoldfire
Copy link

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:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant