2017-10-06 7 views
1

플 런커에 각도 재료를 사용하여 하나의 샘플 프로젝트를 생성했습니다. 어제까지 그것의 일한 벌금은 오늘 작동하지 않습니다.실행할 수 없음 플 런커에 각도 재료 예제

심지어 각진 재질 예제가 작동하지 않습니다. 날 올바른 방향으로 가르쳐 주시겠습니까?

원본 앵귤러 재질의 플 런커 오류와 동일한 오류가 발생했습니다. 사전에

Error: (SystemJS) Unexpected value 'undefined' exported by the module 'PlunkerMaterialModule' 
    Error: Unexpected value 'undefined' exported by the module 'PlunkerMaterialModule' 
     at d (https://cdnjs.cloudflare.com/ajax/libs/zone.js/0.7.2/zone.min.js:1:10303) 
     at syntaxError (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:1729:34) 
     at eval (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15596:40) 
     at Array.forEach (<anonymous>) 
     at CompileMetadataResolver.getNgModuleMetadata (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15594:49) 
     at CompileMetadataResolver.getNgModuleSummary (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15507:52) 
     at eval (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15580:72) 
     at Array.forEach (<anonymous>) 
     at CompileMetadataResolver.getNgModuleMetadata (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15565:49) 
     at JitCompiler._loadModules (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27000:70) 
     at JitCompiler._compileModuleAndComponents (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:26973:36) 
     at JitCompiler.compileModuleAsync (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:26902:37) 
     at PlatformRef_._bootstrapModuleWithZone (https://unpkg.com/@angular/core/bundles/core.umd.js:4568:25) 
     at PlatformRef_.bootstrapModule (https://unpkg.com/@angular/core/bundles/core.umd.js:4554:21) 
     at execute (https://run.plnkr.co/preview/cj8fyb96l00063c5srholji8p/main.ts!transpiled:108:65) 
    Error loading https://run.plnkr.co/preview/cj8fyb96l00063c5srholji8p/main.ts 
     at d (https://cdnjs.cloudflare.com/ajax/libs/zone.js/0.7.2/zone.min.js:1:10303) 
     at syntaxError (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:1729:34) 
     at eval (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15596:40) 
     at Array.forEach (<anonymous>) 
     at CompileMetadataResolver.getNgModuleMetadata (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15594:49) 
     at CompileMetadataResolver.getNgModuleSummary (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15507:52) 
     at eval (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15580:72) 
     at Array.forEach (<anonymous>) 
     at CompileMetadataResolver.getNgModuleMetadata (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:15565:49) 
     at JitCompiler._loadModules (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27000:70) 
     at JitCompiler._compileModuleAndComponents (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:26973:36) 
     at JitCompiler.compileModuleAsync (https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:26902:37) 
     at PlatformRef_._bootstrapModuleWithZone (https://unpkg.com/@angular/core/bundles/core.umd.js:4568:25) 
     at PlatformRef_.bootstrapModule (https://unpkg.com/@angular/core/bundles/core.umd.js:4554:21) 
     at execute (https://run.plnkr.co/preview/cj8fyb96l00063c5srholji8p/main.ts!transpiled:108:65) 
    Error loading https://run.plnkr.co/preview/cj8fyb96l00063c5srholji8p/main.ts 

https://plnkr.co/edit/GKuQv2GnExGPEE3iWynF?p=preview https://material.angular.io/components/tabs/examples

감사합니다.

답변

1

md 접두사가 2.0.0-beta.11에서 더 이상 사용되지 않는 것으로 알려졌으며 현재 (2.0.0-beta.12)로 삭제됩니다. 대신 mat을 사용해야합니다.

MdTabsModule 

<md-tab-group class="demo-tab-group"> 
    <md-tab label="Tab 1"> 

을 사용

MatTabsModule 

<mat-tab-group class="demo-tab-group"> 
    <mat-tab label="Tab 1"> 
0,123,414 :

그래서 대신 가져 Plunker [email protected]

또는 당신은에 각 소재 버전을 설정할 수 있습니다 명시 적으로 2.0.0-beta.11 @

'@angular/material': 'https://unpkg.com/@angular/[email protected]/bundles/material.umd.js', 

Plunker

내가 모든 예제를 여기에서 볼 수 조언

+0

Thx. 너는 생명의 은인이야 !! – CharanRoot

+1

@Jonnysai 다음은 '2.0.0-beta.12'의 다른 모든 주요 변경 사항입니다. https://github.com/angular/material2/blob/master/CHANGELOG.md#breaking-changes – Edric