Closed nimatrengo closed 1 year ago
I'm sorry I just saw your comment now. The exports field in the package.json is automatically detected and updated through the postinstall script, so all you need to do is run pnpm install
to correctly determine the Vue version currently in use.
First of all, I really like the innovation and the approach, I cloned the boilerplate to implement Vue3 components and use them in Vue2.7, I was not able to import the Vue2.7 generated component in my Vue2.7 host application as the
package.json
is exporting the vue3 that is not rendering on Vue2.7. So I had to change theexport
manually in thepackage.json
to make it happen, and then it works, I could not see any guidance in the documentation, Maybe it was not clear to me. Also it was not mentioning that we have to useinstall
function to register the component. This is my fix:and in Vue2 application