How to reference the component library files generated by vue-cli directly within the component library project

Thank you for your help. I made a component library with vue-cli for the first time, and the command I used was:

vue-cli-service build --target lib --name vpui ./src/components/index.js

Project structure:

main.js


index.js


NPM, npm install --save @kuanslove/vpui,

:

.common.js(main.js):

what is the reason for this? Thank you very much

Jan.10,2022

the files in the dist folder should be processed by webpack and are no longer in es6 mode. Import


I encounter the same problem.
how to put it into the node_modules folder to import, you can use
to import under src, but not

.
Menu