ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305:
13049 단어 Angularflex-layout오류Angular7error
ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305:
Angular7에서 빌드중인 프로젝트에 Flex-layout을 설치하면 위의 오류로 빌드 실패.
npm install @angular/flex-layout --save;
....
....
ng serve -o
ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgClassImpl'.
node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,33): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgClassR2Impl'.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(9,19): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgStyleImpl'.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(9,33): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgStyleR2Impl'.
원인
아마 버전 충돌
해결책
npm install @angular/[email protected]
결과
package.json의 내용은 다음과 같습니다.
{
"name": "benzoinfojapan",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~7.1.0",
"@angular/cdk": "^7.3.4",
"@angular/common": "~7.1.0",
"@angular/compiler": "~7.1.0",
"@angular/core": "~7.1.0",
"@angular/fire": "^5.1.3",
"@angular/flex-layout": "^7.0.0-beta.24",
"@angular/forms": "~7.1.0",
"@angular/material": "^7.3.4",
"@angular/platform-browser": "~7.1.0",
"@angular/platform-browser-dynamic": "~7.1.0",
"@angular/pwa": "^0.13.5",
"@angular/router": "~7.1.0",
"@angular/service-worker": "~7.1.0",
"core-js": "^2.5.4",
"firebase": "^5.11.1",
"firebase-admin": "^7.3.0",
"firebase-functions": "^2.3.1",
"firebaseui": "^3.6.1",
"firebaseui-angular": "^3.4.1",
"hammerjs": "^2.0.8",
"igniteui-angular": "^7.3.0",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.13.9",
"@angular/cli": "~7.1.4",
"@angular/compiler-cli": "^7.2.15",
"@angular/language-service": "~7.1.0",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
}
}
Reference
이 문제에 관하여(ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305:), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/atomyah/items/4ec59b34be2bf9a687c2
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
npm install @angular/flex-layout --save;
....
....
ng serve -o
ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgClassImpl'.
node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,33): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgClassR2Impl'.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(9,19): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgStyleImpl'.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(9,33): error TS2305: Module '"C:/Users/AtomYah/Documents/Git/Angular_Projects/benzoinfojapan/node_modules/@angular/common/common"' has no exported member 'ɵNgStyleR2Impl'.
npm install @angular/[email protected]
{
"name": "benzoinfojapan",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~7.1.0",
"@angular/cdk": "^7.3.4",
"@angular/common": "~7.1.0",
"@angular/compiler": "~7.1.0",
"@angular/core": "~7.1.0",
"@angular/fire": "^5.1.3",
"@angular/flex-layout": "^7.0.0-beta.24",
"@angular/forms": "~7.1.0",
"@angular/material": "^7.3.4",
"@angular/platform-browser": "~7.1.0",
"@angular/platform-browser-dynamic": "~7.1.0",
"@angular/pwa": "^0.13.5",
"@angular/router": "~7.1.0",
"@angular/service-worker": "~7.1.0",
"core-js": "^2.5.4",
"firebase": "^5.11.1",
"firebase-admin": "^7.3.0",
"firebase-functions": "^2.3.1",
"firebaseui": "^3.6.1",
"firebaseui-angular": "^3.4.1",
"hammerjs": "^2.0.8",
"igniteui-angular": "^7.3.0",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.13.9",
"@angular/cli": "~7.1.4",
"@angular/compiler-cli": "^7.2.15",
"@angular/language-service": "~7.1.0",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
}
}
Reference
이 문제에 관하여(ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305:), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/atomyah/items/4ec59b34be2bf9a687c2텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)