Reputation: 59
I'm using typescript 2.5.3 and can't upgrade it due to other dependencies. Is there a compatible version of @angular/core for ts 2.5? Installing the latest @angular/core gives me error as below:
angular-js/node_modules/@angular/core/core.d.ts(12341,86): error TS1110: Type expected.
angular-js/node_modules/@angular/core/core.d.ts(12341,92): error TS1005: '=' expected.
angular-js/node_modules/@angular/core/core.d.ts(12341,94): error TS1005: ')' expected.
angular-js/node_modules/@angular/core/core.d.ts(12341,95): error TS1128: Declaration or statement expected.
angular-js/node_modules/@angular/core/core.d.ts(12341,96): error TS1128: Declaration or statement expected.
package.json:
"@angular/core": "^8.2.0",
"typescript": "2.5.3"
tsconfig.json:
{
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"noImplicitAny": false,
"module": "es6",
"moduleResolution": "Node",
"target": "es5",
"alwaysStrict": true,
"suppressImplicitAnyIndexErrors": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
"noEmitHelpers": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
"declarationMap": true,
"declarationDir": angular-js/types",
"outDir": "dist-esm",
"rootDir": "angular-js/src"
},
"include": [
"./src/*.ts"
],
"exclude": [
"node_modules"
]
}
Upvotes: 0
Views: 2370
Reputation: 59
Searched two days found
"@angular/router": "^5.0.0",
"@angular/core": "^5.0.0"
works for ts 2.5, yay~
Upvotes: 2