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

版本0.6.4无法按照文档Vue3全局导入CSS样式 #804

Open
yassine-zhang opened this issue Apr 10, 2024 · 2 comments
Open

版本0.6.4无法按照文档Vue3全局导入CSS样式 #804

yassine-zhang opened this issue Apr 10, 2024 · 2 comments

Comments

@yassine-zhang
Copy link

报错

image

复现

bun add vue-cropper
// main.js
import VueCropper from 'vue-cropper'
import 'vue-cropper/dist/index.css'

const app = createApp(App)

app.use(VueCropper)

app.mount('#app')

解决方案

将导入css代码更改为:import 'vue-cropper/next/dist/index.css'

仓库主页readme文件中CSS样式导入路径错误

@xyxiao001
Copy link
Owner

vue3需要安装1.x版本,可以通过 npm i vue-cropper@next 方式安装

@yassine-zhang
Copy link
Author

vue3需要安装1.x版本,可以通过 npm i vue-cropper@next 方式安装

我试试,谢谢哈

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