How is a package in umd or commonjs build packaged using vue-cli referenced in a vite project? #19037
Unanswered
xiaoxuehai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a vue2 project that is based on vue-cli and another vue2 project that is based on vite. Now I want to package the vue-cli project as a component to be used by the vite project, but I am running into problems.
I import vue-cli packaged components into vite, but The message "SyntaxError: the requested module '/src/lib/custom/custom-form.umd.js? t=1734861457787' does not provide an export named 'default'”
Is there a good way to do this
Beta Was this translation helpful? Give feedback.
All reactions