Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loader

  • Post author:
  • Post category:vue




Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):

16:49:42.890 语法错误: This experimental syntax requires enabling one of the following parser plugin(s): ‘decorators-legacy, decorators’ (1:250)



问题原因

后面引号里面多写了@

@handleCollect=”@handleCollect(index)”

在这里插入图片描述



解决方案

去掉后面多写的@



版权声明:本文为weixin_42708208原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。