vite-plugin-vue2 icon indicating copy to clipboard operation
vite-plugin-vue2 copied to clipboard

How to support non-null assertion operator in template?

Open lvjiaxuan opened this issue 2 years ago • 2 comments

Error message:

[plugin:vite:vue2] invalid expression: Unexpected token '!' in

    numberRollRef!.roll

  Raw expression: @click="numberRollRef!.roll"

lvjiaxuan avatar May 04 '23 06:05 lvjiaxuan

I have the same problem

zWingz avatar Oct 12 '23 08:10 zWingz

I have the same problem

我感觉没法实现,我当时没有找到可以处理的 options ,暂时先用可选 ?.

lvjiaxuan avatar Oct 12 '23 09:10 lvjiaxuan