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

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

Closed
1 task
lei-mu opened this issue May 25, 2020 · 3 comments
Closed
1 task

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

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

Comments

@lei-mu
Copy link

lei-mu commented May 25, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.1

Environment

"ant-design-vue": "^1.6.1", "core-js": "^3.6.4", "vue": "^2.6.11", "vue-router": "^3.1.6", "vuex": "^3.1.3"

Reproduction link

#2297

Steps to reproduce

vue create project
cnpm i --save ant-design-vue

// 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')

npm run serve

What is expected?

没有‘wran’或者告诉我为什么会有

What is actually happening?

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
@itning
Copy link

itning commented May 25, 2020

同样

{
"dependencies": {
    "@itning/axios-helper": "^1.1.0",
    "ant-design-vue": "^1.6.1",
    "core-js": "^3.6.5",
    "js-base64": "^2.5.2",
    "moment": "^2.24.0",
    "vue": "^2.6.11",
    "vue-router": "^3.1.6",
    "vuex": "^3.3.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^4.3.1",
    "@vue/cli-plugin-router": "^4.3.1",
    "@vue/cli-plugin-vuex": "^4.3.1",
    "@vue/cli-service": "^4.3.1",
    "less": "^3.11.1",
    "less-loader": "^5.0.0",
    "vue-template-compiler": "^2.6.11"
  }
}
utils.js?946a:195 [VueTypes warn]: object - value "" should be of type "Object"
warn @ utils.js?946a:195
validateType @ utils.js?946a:177
value @ utils.js?946a:80
IDialogPropTypes @ IDialogPropTypes.js?97fe:38
eval @ Dialog.js?e343:12
./node_modules/ant-design-vue/es/vc-dialog/Dialog.js @ chunk-vendors.js:4791
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ DialogWrap.js?0eea:1
./node_modules/ant-design-vue/es/vc-dialog/DialogWrap.js @ chunk-vendors.js:4803
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?db84:1
./node_modules/ant-design-vue/es/vc-dialog/index.js @ chunk-vendors.js:4839
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ Modal.js?1759:1
./node_modules/ant-design-vue/es/modal/Modal.js @ chunk-vendors.js:3231
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?ed3b:1
./node_modules/ant-design-vue/es/modal/index.js @ chunk-vendors.js:3255
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?f23d:1
./node_modules/ant-design-vue/es/index.js @ chunk-vendors.js:2895
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ main.js:15
./src/main.js @ app.js:1558
__webpack_require__ @ app.js:791
fn @ app.js:151
1 @ app.js:1715
__webpack_require__ @ app.js:791
checkDeferredModules @ app.js:46
(anonymous) @ app.js:931
(anonymous) @ app.js:934
Show 7 more frames
utils.js?946a:195 [VueTypes warn]: object - invalid default value: ""
warn @ utils.js?946a:195
value @ utils.js?946a:81
IDialogPropTypes @ IDialogPropTypes.js?97fe:38
eval @ Dialog.js?e343:12
./node_modules/ant-design-vue/es/vc-dialog/Dialog.js @ chunk-vendors.js:4791
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ DialogWrap.js?0eea:1
./node_modules/ant-design-vue/es/vc-dialog/DialogWrap.js @ chunk-vendors.js:4803
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?db84:1
./node_modules/ant-design-vue/es/vc-dialog/index.js @ chunk-vendors.js:4839
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ Modal.js?1759:1
./node_modules/ant-design-vue/es/modal/Modal.js @ chunk-vendors.js:3231
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?ed3b:1
./node_modules/ant-design-vue/es/modal/index.js @ chunk-vendors.js:3255
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?f23d:1
./node_modules/ant-design-vue/es/index.js @ chunk-vendors.js:2895
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ main.js:15
./src/main.js @ app.js:1558
__webpack_require__ @ app.js:791
fn @ app.js:151
1 @ app.js:1715
__webpack_require__ @ app.js:791
checkDeferredModules @ app.js:46
(anonymous) @ app.js:931
(anonymous) @ app.js:934
Show 6 more frames
utils.js?946a:195 [VueTypes warn]: object - value "" should be of type "Object"
warn @ utils.js?946a:195
validateType @ utils.js?946a:177
value @ utils.js?946a:80
IDialogPropTypes @ IDialogPropTypes.js?97fe:38
eval @ DialogWrap.js?0eea:7
./node_modules/ant-design-vue/es/vc-dialog/DialogWrap.js @ chunk-vendors.js:4803
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?db84:1
./node_modules/ant-design-vue/es/vc-dialog/index.js @ chunk-vendors.js:4839
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ Modal.js?1759:1
./node_modules/ant-design-vue/es/modal/Modal.js @ chunk-vendors.js:3231
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?ed3b:1
./node_modules/ant-design-vue/es/modal/index.js @ chunk-vendors.js:3255
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ index.js?f23d:1
./node_modules/ant-design-vue/es/index.js @ chunk-vendors.js:2895
__webpack_require__ @ app.js:791
fn @ app.js:151
eval @ main.js:15
./src/main.js @ app.js:1558
__webpack_require__ @ app.js:791
fn @ app.js:151
1 @ app.js:1715
__webpack_require__ @ app.js:791
checkDeferredModules @ app.js:46
(anonymous) @ app.js:931
(anonymous) @ app.js:934
Show 3 more frames
utils.js?946a:195 [VueTypes warn]: object - invalid default value: ""

@itning
Copy link

itning commented May 25, 2020

重现链接:(控制台 See Console)
https://codesandbox.io/s/vue-antd-template-c1v0x

@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 27, 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

3 participants