从@angular/material 2.0.0-beta.11升级到2.0.0-beta.12后,出现了以下错误:
模块@angular/material/material没有导出'MdButtonModule'成员。
Typescript代码:
import { MdButtonModule } from '@angular/material';
发生了什么事情?
在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误: 模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdButtonModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdCardModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdCheckboxModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdIconModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdOptionModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdProgressSpinnerModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdSelectModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdSidenavModule'。在 c:/dev/my-proj/src/app/app-material/app-material.module.ts 中发生错误:模块 '"c:/dev/my-proj/node_modules/@angular/material/material"' 没有导出成员 'MdToolbarModule'。 在错误中: MdButtonModule 不是 NgModule at _getNgModuleMetadata (c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_impl.js:140:15) at _extractLazyRoutesFromStaticModule (c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26) at c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27 at Array.reduce (native) at _extractLazyRoutesFromStaticModule (c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10) at c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27 at Array.reduce (native) at _extractLazyRoutesFromStaticModule (c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10) at Object.listLazyRoutesOfModule (c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22) at Function.NgTools_InternalApi_NG_2.listLazyRoutes (c:\dev\my-proj\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:39) at AotPlugin._getLazyRoutesFromNgtools (c:\dev\my-proj\node_modules\@ngtools\webpack\src\plugin.js:207:44) at _donePromise.Promise.resolve.then.then.then.then.then (c:\dev\my-proj\node_modules\@ngtools\webpack\src\plugin.js:443:24)
0-beta.11
->0-beta.12
),这样进行如此巨大的命名转换是否合理(针对前端开发人员)? - Andrew Tobilko