How to create a vue typescript library? #317
Unanswered
classicalguss
asked this question in
Q&A
Replies: 1 comment
-
u need something like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm struggling to find any documentation that will help me with this. I tried many other things but nothing seems to work.
I followed the suggestion here https://vitejs.dev/guide/build#library-mode
Ended up with this package.json
This vite.config.ts
Otherwise my project is very minimal. And nothing special, just a component that prints
When I try to use this library on another project I guess this error
Of course I tried many other things regarding typings. But every other thing seems to produce some other error. I can't believe there isn't a simple tutorial or way to do this.
Beta Was this translation helpful? Give feedback.
All reactions