I'm using version 4.3.5 of typescript with Ionic and have ts(1378) error.
Here are is the tsconfig:
{
"compilerOptions": {
"target": "es2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"sourceMap": true,
"noImplicitAny": true,
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "ESNext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
And the code where I'm getting the error:
import { Storage } from '@ionic/storage';
const store = new Storage();
await store.create();
export default store;
According to the error all I needed to change was the target to >=es2017 and the module to esnext or system, but I have that and it still shows me the error.
Don't know if it's relevant but you can see my folder structure here.
Thanks in advance :)