Skip to content

Material Card moved dependencie #6

@poet-of-the-fall

Description

@poet-of-the-fall

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

Windows 10, WSL

Versions

Angular CLI: 10.2.0
Node: 12.19.0
OS: linux x64

Angular: 10.2.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1002.0
@angular-devkit/build-angular   0.1002.0
@angular-devkit/core            10.2.0
@angular-devkit/schematics      10.2.0
@angular/cdk                    10.2.7
@angular/cli                    10.2.0
@angular/flex-layout            10.0.0-beta.32
@angular/material               10.2.7
@schematics/angular             10.2.0
@schematics/update              0.1002.0
rxjs                            6.6.3
typescript                      4.0.5

Repro steps

Just crate a new project (with new angular material version) and add this dependency. On ng serve the compiler will not find the cards dependency in the jumbotron package as it moved to import {MatCardModule} from '@angular/material/card';

The log given by the failure

ERROR in Failed to compile entry-point @angular-material-extensions/jumbotron (es2015 as esm2015) due to compilation errors:
node_modules/@angular-material-extensions/jumbotron/esm2015/jumbotron.js:91:26 - error NG1010: Value at position 2 in the NgModule.imports of MatJumbotronModule is not a reference
  Value could not be determined statically.

 91                 imports: [
                             ~
 92                     CommonModule,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
 94                     MatCardModule,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 95                 ],
    ~~~~~~~~~~~~~~~~~

  node_modules/@angular-material-extensions/jumbotron/esm2015/jumbotron.js:94:21
    94                     MatCardModule,
                           ~~~~~~~~~~~~~
    Unknown reference.

Desired functionality

Please support the latest version of angular material.

Mention any other details that might be useful

See current
https://material.angular.io/components/card/api

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