Can I use Angular Material 2.0.0-alpha.9-3 with angular 2.1?

前端 未结 1 580
攒了一身酷
攒了一身酷 2021-01-23 12:39

I try to user angular/material ^2.0.0-alpha.9-3 with Angular 2.1, but I get the exceptions:

zone.js:1274 GET http://localhost:3000/@angular/material 404 (

相关标签:
1条回答
  • 2021-01-23 13:42

    Update

    Since 2.0.0-beta.1 rebar-teacup

    '@angular/material': 'npm:@angular/material/bundles/material.umd.js'
    

    Previous version

    Change your systemjs config like:

    map: {
      app: 'app',
      '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
      ...
      '@angular/material': 'npm:@angular/material/material.umd.js', <== add this line
    },
    

    See also Angular2 Material Design alpha.9-3 has '404 not found' for @angular/material

    0 讨论(0)
提交回复
热议问题