vue-datepicker-next
vue-datepicker-next copied to clipboard
[Question] 用Git链接引入项目报错
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
npm run build 或者 修改 package.json 里面的main: './lib/index.ts'
fork的项目跑了npm run build,还是报错,就试试看你原本的git地址可以用不,发现也不行