Weex + weex UI: TypeError: _ vm._px2rem is not a function

problem solved: create a project using weexpack create project name , do not use weex create project name in the official document!

< hr >

create a project using ide/set-up-env.html" rel=" nofollow noreferrer "> weex , introduce weex-ui, to copy weex-ui "s demo code , and report an error in the browser console after running:

[Vue warn]: Property or method "_px2rem" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html-sharpDeclaring-Reactive-Properties.

found in

---> <WxcButton> at /Users/xuyuning/Sites/myApp/node_modules/weex-ui/packages/wxc-button/index.vue
       <HelloWorld> at /Users/xuyuning/Sites/myApp/src/components/HelloWorld.vue
         <Root>

looks like the _ px2rem package call failed, while this WxcButton is in node_modules/ and does not have permission to modify.

are there any students with similar problems? Solve!

Mar.03,2021

my call is normal, please check the weexpack version

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9e0d4-19ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9e0d4-19ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?