doubleCount can be used normally, but when used directly in the template, it will not automatically import sum
throw err is: _ctx.sum is not a function
Reproduction
Reproducible
System Info
System:
OS: Windows 10 10.0.18363
CPU: (16) x64 AMD Ryzen 7 PRO 4750G with Radeon Graphics
Memory: 5.86 GB / 15.41 GB
Binaries:
Node: 16.0.0 - D:\nodejs\node.EXE
Yarn: 1.22.18 - D:\nodejs\yarn.CMD
npm: 7.10.0 - D:\nodejs\npm.CMD
Browsers:
Internet Explorer: 11.0.18362.1
Describe the bug
Functions used in template are not imported normally
viteconfig.ts
util/index.ts
app.vue
doubleCount can be used normally, but when used directly in the template, it will not automatically import sum throw err is: _ctx.sum is not a function
Reproduction
Reproducible
System Info
Used Package Manager
npm
Validations