Skip to content

一个新创建的vue 项目,引入ant-design-vue 会报‘warn’ #2297

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

Closed
lei-mu opened this issue May 25, 2020 · 2 comments
Closed

一个新创建的vue 项目,引入ant-design-vue 会报‘warn’ #2297

lei-mu opened this issue May 25, 2020 · 2 comments
Labels

Comments

@lei-mu
Copy link

lei-mu commented May 25, 2020

vue-cli3 新创建一个项目

// main.js
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
Vue.config.productionTip = false
Vue.use(Antd)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

无其他修改代码。
在浏览器会报warn

utils.js?9ec1:195 [VueTypes warn]: object - value "" should be of type "Object"
warn @ utils.js?9ec1:195
validateType @ utils.js?9ec1:177
value @ utils.js?9ec1:80
IDialogPropTypes @ IDialogPropTypes.js?7214:38
eval @ Dialog.js?86cd:12
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/Dialog.js @ chunk-vendors.js:3514
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ DialogWrap.js?8fbf:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/DialogWrap.js @ chunk-vendors.js:3526
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?dd31:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/index.js @ chunk-vendors.js:3562
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ Modal.js?0941:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/modal/Modal.js @ chunk-vendors.js:1954
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?156a:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/modal/index.js @ chunk-vendors.js:1978
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?9efa:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/index.js @ chunk-vendors.js:1618
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ main.js:14
./src/main.js @ app.js:1228
__webpack_require__ @ app.js:854
fn @ app.js:151
1 @ app.js:1301
__webpack_require__ @ app.js:854
checkDeferredModules @ app.js:46
(anonymous) @ app.js:994
(anonymous) @ app.js:997
Show 7 more frames
utils.js?9ec1:195 [VueTypes warn]: object - invalid default value: ""
warn @ utils.js?9ec1:195
value @ utils.js?9ec1:81
IDialogPropTypes @ IDialogPropTypes.js?7214:38
eval @ Dialog.js?86cd:12
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/Dialog.js @ chunk-vendors.js:3514
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ DialogWrap.js?8fbf:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/DialogWrap.js @ chunk-vendors.js:3526
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?dd31:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/index.js @ chunk-vendors.js:3562
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ Modal.js?0941:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/modal/Modal.js @ chunk-vendors.js:1954
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?156a:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/modal/index.js @ chunk-vendors.js:1978
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?9efa:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/index.js @ chunk-vendors.js:1618
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ main.js:14
./src/main.js @ app.js:1228
__webpack_require__ @ app.js:854
fn @ app.js:151
1 @ app.js:1301
__webpack_require__ @ app.js:854
checkDeferredModules @ app.js:46
(anonymous) @ app.js:994
(anonymous) @ app.js:997
Show 6 more frames
utils.js?9ec1:195 [VueTypes warn]: object - value "" should be of type "Object"
warn @ utils.js?9ec1:195
validateType @ utils.js?9ec1:177
value @ utils.js?9ec1:80
IDialogPropTypes @ IDialogPropTypes.js?7214:38
eval @ DialogWrap.js?8fbf:7
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/DialogWrap.js @ chunk-vendors.js:3526
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?dd31:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/vc-dialog/index.js @ chunk-vendors.js:3562
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ Modal.js?0941:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/modal/Modal.js @ chunk-vendors.js:1954
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?156a:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/modal/index.js @ chunk-vendors.js:1978
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ index.js?9efa:1
./node_modules/_ant-design-vue@1.6.1@ant-design-vue/es/index.js @ chunk-vendors.js:1618
__webpack_require__ @ app.js:854
fn @ app.js:151
eval @ main.js:14
./src/main.js @ app.js:1228
__webpack_require__ @ app.js:854
fn @ app.js:151
1 @ app.js:1301
__webpack_require__ @ app.js:854
checkDeferredModules @ app.js:46
(anonymous) @ app.js:994
(anonymous) @ app.js:997
Show 3 more frames

虽然没有影响项目运行,但是不知道错误出现在哪里,找了大半天。最后发现新项目引入也会有这个问题

@close-issue-app
Copy link

Your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant