You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by GitBox <gi...@apache.org> on 2018/09/20 15:59:09 UTC
[GitHub] bcreation opened a new issue #1558: picker is undefined !
bcreation opened a new issue #1558: picker is undefined !
URL: https://github.com/apache/incubator-weex/issues/1558
## Description
I try to import the picker module like this :
const picker = weex.requireModule('picker')
But when I tried to call it, like in the exemple
https://weex.apache.org/references/modules/picker.html
Nothing happend. So I put a console.log(picker) to see what inside.
But it return undefined
Then I tries to search in the source code.
I found this :
requireModule (moduleName) {
const metaMod = weex._meta.requiredModules
if (!metaMod[moduleName]) {
metaMod[moduleName] = 0
}
metaMod[moduleName]++
return weexModules[moduleName]
},
weexModules['picker'] is undefined and weexModules list havent 'picker'.
Can you help me ?
## Environment
"dependencies": {
"phantom-limb": "0.0.1",
"vue": "^2.5.11",
"vue-router": "^3.0.1",
"vuex": "^3.0.1",
"weex-vue-render": "^1.0.17",
"weex-vuex-loader": "^1.0.0"
},
I run on the web weex playground in chrome
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services