Skip to content

Angular library - Cannot read property 'ɵmod' of undefined - Angular 12 #20987

@PieterjanDeClippel

Description

@PieterjanDeClippel

Bug Report

Description

I created an angular library using angular 12, but when using the library in another project, I'm getting the following error:

Cannot read property 'ɵmod' of undefined

Minimal Reproduction

Exception or Error

Uncaught TypeError: Cannot read property 'ɵmod' of undefined

image

Your Environment

Angular Version:


Angular CLI: 12.0.2
Node: 14.15.1
Package Manager: npm 6.14.8
OS: win32 x64

Angular: 12.0.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.2
@angular-devkit/build-angular   12.0.2
@angular-devkit/core            12.0.2
@angular-devkit/schematics      12.0.2
@schematics/angular             12.0.2
rxjs                            6.6.7
typescript                      4.2.4

Anything else relevant?
The StackBlitz appears to be working fine...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions