-
Notifications
You must be signed in to change notification settings - Fork 2
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
The type declaration of maria2/transport is missing #10
Comments
OK, I will try |
Maybe fixed in v0.3.0-beta.8. Have a try 😉 @yjl9903 |
|
omg...
I tested on my VSC, there is no problem. @yjl9903 |
Still only By the way, my environment:
|
I don't know why mine does not work 😥 Consider this
or this to be more robust?🤣
|
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
]
}
}, |
Now. @yjl9903 |
Ok, it seems work |
VS Code can not properly find the type declaration of
maria2/transport
, with onlyexports
fields inpackage.json
.In my previous experience, add the following
typesVersions
field may help.https://github.com/antfu/unplugin-auto-import/blob/f70ea9bea38df4d1632bd466ddaee0b5274ef07a/package.json#L80-L87
The text was updated successfully, but these errors were encountered: