You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Hanks Zhang (JIRA)" <ji...@apache.org> on 2018/07/18 09:16:00 UTC

[jira] [Commented] (WEEX-225) Module build failed: TypeError: staticClass.trim is not a function

    [ https://issues.apache.org/jira/browse/WEEX-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16547587#comment-16547587 ] 

Hanks Zhang commented on WEEX-225:
----------------------------------

As mentioned in the document, bind class list with a variable is not supported yet. [http://weex-project.io/cn/references/components/recycle-list.html#yang-shi-gong-neng-de-xian-zhi]

 

But you can bind inline styles as well.

> Module build failed: TypeError: staticClass.trim is not a function
> ------------------------------------------------------------------
>
>                 Key: WEEX-225
>                 URL: https://issues.apache.org/jira/browse/WEEX-225
>             Project: Weex
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 0.18
>         Environment: weex-loader:v0.7.2
> weex SDK 0.18
> Android 7.0
>            Reporter: wuyanhui
>            Assignee: zhengshihan
>            Priority: Major
>
>  
>  E/jsengine: ReportException : Exception: Error: Module build failed: TypeError: staticClass.trim is not a function
>  at parseStaticClass (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:3699:33)
>  at Array.transformNode (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:3661:13)
>  at processElement (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:1376:28)
>  at Object.start (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:1215:9)
>  at handleStartTag (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:484:15)
>  at parseHTML (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:344:11)
>  at parse (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:1160:3)
>  at baseCompile (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/b
>  
> reportJSException >>>> instanceId:5, exception function:createInstance, exception:Exception: Error: Module build failed: TypeError: staticClass.trim is not a function
>  at parseStaticClass (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:3699:33)
>  at Array.transformNode (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:3661:13)
>  at processElement (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:1376:28)
>  at Object.start (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:1215:9)
>  at handleStartTag (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:484:15)
>  at parseHTML (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:344:11)
>  at parse (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:1160:3)
>  at baseCompile (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:3644:13)
>  at Object.compile (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:3619:22)
>  at Object.compile (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-template-compiler/build.js:4277:25)
>  at Object.module.exports (/Users/wuyanhui/Documents/weex/sellerWeex/node_modules/weex-vue-loader/lib/template-compiler.js:71:27)
>  (global function):18458:16
>  __webpack_require__@(global function):25:34
>  (global function):18194:43
>  __webpack_require__@(global function):25:34
>  (global function):4827:33
>  __webpack_require__@(global function):25:34
>  (global function):17223:35
>  __webpack_require__@(global function):25:34
>  (global function):33471:34
>  __webpack_require__@(global function):25:34
>  (global function):33375:38
>  __webpack_require__@(global function):25:34
>  (global function):68:37
>  (global function):69:12
>  anonymous@(global function):33679:7
>  (weex framework):1:40926
>  createInstance@(weex framework):1:40937
>  (weex framework):1:255299
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)