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

unexpected attribute name, near .sync #2729

Open
lzl124631x opened this issue Mar 4, 2021 · 3 comments
Open

unexpected attribute name, near .sync #2729

lzl124631x opened this issue Mar 4, 2021 · 3 comments

Comments

@lzl124631x
Copy link

lzl124631x commented Mar 4, 2021

[ WXML file compile error] ./pages/edit-basic-info.wxml
 unexpected attribute name, near `.sync`
  23 |             
  24 |         
> 25 |         <editOccupation  v-bind:occupation.sync="occupation"  v-on:validityChanged="onOccupationValidityChanged"/>
     |                                          ^
  26 |     </view>
  27 | 
  28 | 
at files://pages/edit-basic-info.wxml#25

我搜了一下生成的EditOccupation组件, 只能找到edit-occupation.js, 没有wxml文件, 这正常吗?

我的代码之前是工作的, 我没改代码.

这个报错是说我EditOccupation组件的错误还是EditBasicInfo页面的错误?


edit-occupation.js里面我能看到

_this.props = {
            occupation: {
                type: Object,
                default: {
                    type: -1,
                    name: ''
                }
            }
        }
@lzl124631x
Copy link
Author

@Gcaufy 求助. 加小助手2也没反应. 这项目不活跃了么?

@9monsters
Copy link

@Gcaufy 求助. 加小助手2也没反应. 这项目不活跃了么?

放弃这个框架吧,推荐mpx

@lzl124631x
Copy link
Author

lzl124631x commented Mar 11, 2021

@NineSwordsMonster 那也太惨了吧... 我的项目做了好一阵子了. 吐血.

这样我怀疑我是不是应该直接用原生的. 否则框架一摆烂我就得重写...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants