I hope my question doesn't seem silly, but I'm facing some issues when importing Shaka player in a typescript module like this:
import shaka from 'shaka-player/dist/shaka-player.ui';
In this case the compiler tells me this:
TS2306: File '~/dist/shaka-player.ui.d.ts' is not a module.
When looking at module architecture, you can obviously see in the dist
folder contains currently the types declaration file and the js build for the module
And this is my tsconfig compiler options:
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"allowJs": true,
"checkJs": false,
"types": [
"webpack-env",
"jest"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}