-
Notifications
You must be signed in to change notification settings - Fork 12
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
bug: Issues building when using vue with typescript #332
Comments
Ah this is an easy fix sorry about that! Working on a PR now! |
Fixed in v1.23.6 |
vue is so special :) I don't think you need to create another issue I think I can reproduce from that error! |
Hopefully we can work together a bit on this one I am not personally a Vue user so you may have been the first to really test it! |
Sure, will test it. |
I am not sure this can be solved from my end... Can you try adding the following to your package.json:
|
Do you normally have to use typescript as a peer dependency when using vue? |
it is added on my end, and yes its normally a peer dependency: currently: |
it was already added? Or you just added it now? |
It was. (so it wasnt problem) |
It might be problem in |
Can you link the issue |
Thanks! I have run out of time to look at this at the moment I should be able to find some more later this afternoon! |
So... Rather frustratingly there seems to be a difference between This is unfortunate since the So I am going to just use |
Just merged a fix you do need to have typescript installed for the vue compiler to work though. |
Describe the issue
When Vue imports type from another file.
npm run build:registry
fails.Registry Link
https://github.com/CodeDelegates/JS-repo-vue-TS
Reproduction Link
https://github.com/CodeDelegates/JS-repo-vue-TS
Steps to reproduce
To reproduce error:
Repo:
https://github.com/CodeDelegates/JS-repo-vue-TS
or outside of reproduction repo: ### Minimal code to replicate
Test.vue
type.ts
It works when PropType is defined directly in Test.vue file, but fails when imported from another file.
Validations
The text was updated successfully, but these errors were encountered: