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

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)"

Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loader_第1张图片

解决方案

去掉后面多写的@

你可能感兴趣的:(vue,#,uni-app,bug,vue)