Replies: 4 comments 1 reply
-
|
Hmm, what errors are you seeing? I just threw this together which seems to show the types ok but maybe it's not the best example: |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I see that it works in your example... I get the |
Beta Was this translation helpful? Give feedback.
-
|
Maybe try wiping out |
Beta Was this translation helpful? Give feedback.
-
|
Same here. We had to lock the version at I get the following error with the following import. import Plyr from 'plyr'error TS2307: Cannot find module 'plyr' or its corresponding type declarations.
There are types at '**/node_modules/plyr/src/js/plyr.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.My {
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"isolatedModules": true,
"moduleResolution": "node",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": ["vite/client", "node"],
"paths": {
"@/*": ["src/*"]
},
"lib": ["esnext", "dom"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"exclude": ["node_modules"]
}TypeScript version is |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Are there any known issues related to typings in 3.8.3? Based on changelog, there was some hassle related to that in a couple of past releases. But for me 3.8.3 version still not working - I cannot import from the package.
Beta Was this translation helpful? Give feedback.
All reactions