-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error with version 3.1.2 #101
Comments
@sergioness hey, thanks for reporting this issue. Can you run |
@lquixada, thanks, it compiles fine with I think the issue is resolved now. |
@sergioness thanks! just released |
hey, @lquixada, it looks like some typings still missing there. Here are the logs now on
a little more details on my env:
"@types/jasmine": "3.6.9",
"@types/node": "11.15.50",
"cross-fetch": "3.1.3",
{
"compilerOptions": {
"target": "ES5",
"declaration": true,
"declarationDir": "./build",
"declarationMap": true,
"sourceMap": true,
"outDir": "./build",
"rootDir": "./",
"strict": false,
"noImplicitAny": false,
"strictNullChecks": false,
"strictFunctionTypes": false,
"strictBindCallApply": true,
"strictPropertyInitialization": false,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"esModuleInterop": true,
},
"include": [
"src/",
"test/"
],
"exclude": [
"build/",
"node_modules/",
]
} Notes:
|
Yeah, we also out of a sudden after updating to 3.1.3 receive the errors @sergioness is reporting. |
@sergioness I can see your target is set to "ES5". Typescript doesn't include the "dom" lib on ES5 (check here). The curious thing is that it does include it if you set it to "ES6" (check here). So if you need the dom type declarations, I'd suggest to either add "dom" to the "lib" option in your tsconfig.json or change the target to "es6". @ceisele-r please check if that's your case as well. |
@lquixada in our case, this is the tsconfig: |
hey all! sorry for the trouble! adding local types to cross-fetch has been trickier than originally thought so I'm reverting those changes so everyone can run it safely. Please let me know if |
Hi, @lquixada! With |
upd:I guess I sorted the 1st part out:
Angular docs (actually everyone else too) pretty clear on these points. original comment:[part 1]
[part 2] |
Hi @lquixada , I can confirm that with |
This revert undoes #70, we should reopen that. |
First of all, thanks for your powerful package!
Problem
Upgrading from 3.1.1 to 3.1.2 causes the following errors:
Environment
Workaround
Downgrading to version 3.1.1 (or
"cross-fetch": "^3.1 <=3.1.1 || ^3.1 >3.1.2"
).The text was updated successfully, but these errors were encountered: