2017-12-27 5 views
3

도움이 필요하다는 오류가 너무 구체적 일 수 있습니다. 그러나 여기에 게시하여 수행 할 작업에 대한 제안 사항을 찾고 있습니다.웹 사이트를 제공하려고 시도 할 때 메타 데이터 오류가 발생했습니다.

이전 레이아웃의 웹 사이트를 비슷한 기능의 새 레이아웃으로 4 각도로 이전합니다. 이전 컴퓨터에서 모든 것이 예상대로 실행되고있었습니다. 나는 새로운 기계를 받았고 지금은 웹 사이트를 제공하려고 할 때마다 오류가 발생합니다.

ERROR in Error: Metadata version mismatch for module C:/Users/drose/Angular/node_modules/@ng-idle/keepalive/index.d.ts, found version 4, expected 3, resolving symbol AppModule in C:/Users/drose/Angular/src/app/app.module.ts, resolving symbol AppModule in C:/Users/drose/Angular/src/app/app.module.ts, resolving symbol AppModule in C:/Users/drose/Angular/src/app/app.module.ts 
at syntaxError (C:\Users\drose\Angular\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34) 
at simplifyInContext (C:\Users\drose\Angular\node_modules\@angular\compiler\bundles\compiler.umd.js:24979:23) 
at StaticReflector.simplify (C:\Users\drose\Angular\node_modules\@angular\compiler\bundles\compiler.umd.js:24991:13) 
at StaticReflector.annotations (C:\Users\drose\Angular\node_modules\@angular\compiler\bundles\compiler.umd.js:24418:41) 
at _getNgModuleMetadata (C:\Users\drose\Angular\node_modules\@angular\compiler-cli\src\ngtools_impl.js:138:31) 
at _extractLazyRoutesFromStaticModule (C:\Users\drose\Angular\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26) 
at Object.listLazyRoutesOfModule (C:\Users\drose\Angular\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22) 
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\Users\drose\Angular\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:39) 
at AotPlugin._getLazyRoutesFromNgtools (C:\Users\drose\Angular\node_modules\@ngtools\webpack\src\plugin.js:241:66) 
at _donePromise.Promise.resolve.then.then.then.then.then (C:\Users\drose\Angular\node_modules\@ngtools\webpack\src\plugin.js:495:24) 
at <anonymous> 
at process._tickCallback (internal/process/next_tick.js:188:7) 

나는 GitHub의 역사와 아무것도 작동하는 것 같다 밖으로에서 웹 사이트의 이전 버전을 잡아 노드의 다른 버전을 다시 설치, 모든 종속성을 설치 수동으로 시도했습니다. 누구나 이것에 대해 더 많은 경험이 있습니까?

답변

0

이전 버전을 사용한 것 같습니다. 당신은 확인 자세한 정보에 대한 package.json

"@angular/cdk": "^4.0.0", 
"@angular/common": "^4.0.0", 
"@angular/compiler": "^4.0.0", 
"@angular/core": "^4.0.0", 

// update whatever other modules to latest version 

의 새로운 버전을 업데이트해야 this