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安装uni-ui的方式本地引入uni-ui组件报错组件未定义 #888

Open
linxing1026 opened this issue May 6, 2024 · 0 comments

Comments

@linxing1026
Copy link

pages.json中配置了easycom
"easycom": {
"autoscan": true,
"custom": {
"^uni-(.)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
"^we-uni-(.
)": "components/uni-$1/uni-$1.vue"
}
},
vue.config.js中也配置了如下
transpileDependencies: ['@dcloudio/uni-ui']
页面中使用uni-ui组件还是报错 unknow custom element

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

1 participant