Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm安装之后引入通不过编译 #173

Open
douyi-FE opened this issue Nov 30, 2024 · 1 comment
Open

npm安装之后引入通不过编译 #173

douyi-FE opened this issue Nov 30, 2024 · 1 comment

Comments

@douyi-FE
Copy link

import videPlay from 'vue3-video-play'
import '@/assets/js/video-play/style.css'

[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.

@yeyunwen
Copy link

yeyunwen commented Dec 20, 2024

image
package.json中esm的导出文件名,没有和dist下的esm产物的文件名对上。让其保持一致即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants