"vue3-video-play". The package may have incorrect main/module/exports specified in its package.json.

MickyGirl發表於2024-08-14

[vite] Internal server error: Failed to resolve entry for package "vue3-video-play". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "vue3-video-play". The package may have incorrect main/module/exports specified in its package.json.

解決辦法,找到node_modules/vue3-video-play/package.json檔案,開啟

找到 並修改為index.mjs

"module": "./dist/index.mjs",

相關文章