mengxiong10 / vue-datepicker-next

A datepicker / datetimepicker component for Vue3
https://mengxiong10.github.io/vue-datepicker-next/
MIT License
148 stars 33 forks source link

[Question] 用Git链接引入项目报错 #16

Open zjywill opened 2 years ago

zjywill commented 2 years ago

node_modules/vite/dist/node/chunks/dep-59dc6e00.js:40662:10: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "vue-datepicker-next". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "vue-datepicker-next". The package may have incorrect main/module/exports specified in its package.json.

需要对组建做修改,用"vue-datepicker-next": "git+https://github.com/mengxiong10/vue-datepicker-next.git#main",引入项目,报如上错误

https://github.com/zjywill/DateTest/blob/master/package.json

mengxiong10 commented 2 years ago

npm run build 或者 修改 package.json 里面的main: './lib/index.ts'

zjywill commented 2 years ago

fork的项目跑了npm run build,还是报错,就试试看你原本的git地址可以用不,发现也不行