试图将pug集成到现有的Vue3项目中。在安装pug和pug平面加载程序之后,我计算的属性中的变量就不再工作了.
旧守则(无帕格,工作):
<template>
<h1>
{{ name }}
</h1>
</template>新代码(与pug一起使用,不起作用):
<template lang="pug">
h1
{{ name }}
</template>我得到的错误如下:
...unexpected text "{{ na"
at makeError...我是否遗漏了在我的Vue3应用程序中启动和运行需要发生的其他事情?谢谢你的帮助。
发布于 2022-03-19 18:47:09
将h1移到左边,并在同一行上进行插值,就可以解决这个问题。
<template lang="pug">
h1 {{ name }}
</template>https://stackoverflow.com/questions/71540279
复制相似问题