Closed moltar closed 5 years ago
hi, can you share your tsconfig.json?
{
"compilerOptions": {
"moduleResolution": "node",
"target": "es5",
"module": "es2015",
"lib": ["es2015", "es2016", "es2017"],
"strict": true,
"sourceMap": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declarationDir": "dist/types",
"outDir": "dist/lib",
"typeRoots": ["node_modules/@types"],
"types": ["jest-extended"]
},
"include": ["src"]
}
tks! that's very helpful! gonna take a look!
So, it seems that when you specify the "es5" target in your compilerOptions, typescript uses the following libs: DOM, ES5, ScriptHost. But since you're overriding these with ["es2015", "es2016", "es2017"] in your lib option, the solution would be adding "dom" to the list:
{
"compilerOptions": {
// ...
"target": "es5",
"lib": ["es2015", "es2016", "es2017", "dom"],
// ...
},
// ...
}
Closing this issue since there was no response.
Oh, sorry, not sure how I missed the notification, but I didn't see the reply.
Thank you for your input. The dom
declaration definitely fixes the issue for me.
Thanks again for the great module.
@moltar no worries. I'm glad that it worked out for you! thanks for the reporting the issue.