-
Notifications
You must be signed in to change notification settings - Fork 35
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
Could not find a declaration file for module 'vue-types' #419
Comments
@JeromeDeLeon the changes in #412 should fix the issue. I have released a temporary version. Could you try it and let me know if it works for you?
|
@JeromeDeLeon the correct PR is #421, sorry |
Thanks @dwightjack. I just installed that build and it is now working. |
@JeromeDeLeon I found a typo in the shim definition and fixed it in If you're still experiencing the issue after installing |
@dwightjack Thanks, it is working for me. We pretty much have the same setup as you have on your demo. |
Released as |
Describe the bug
I scaffolded the project using
pnpm create vue@latest
with the following optionsI then added
vue-types
right after and started using it and got an errorI tried looking for similar issues around
types
condition to thepackage.json#exports
gxmari007/vite-plugin-eslint#60"moduleResolution": "bundler"
pdfme/pdfme#195and I tried running
tsc --traceResolution
and gotbut I managed to get it working by doing this where I patched the
*.d.ts
to have similar location and file name of the.(c)js
filesand then re-run the
tsc --traceResolution
againI haven't tested the
require
or theshim
version but hopefully they work the same wayTo Reproduce
Steps to reproduce the behavior:
vue-types
Expected behavior
I'm expecting to not have this error
Library version
The text was updated successfully, but these errors were encountered: