0
点赞
收藏
分享

微信扫一扫

Syntax Error: TypeError: Cannot read properties of null (reading ‘content‘)

洛茄 2022-04-13 阅读 92
vue.js

vue cli时候,这个问题报的莫名其妙。

出现这种情况,我这里遇到了,大概就下面这几种情况:

1. import组件或者js重复时候报错

2. 函数重名

3. async没写

function initfun(){
    await fun();
}

应该写成:
async function initfun(){
    await fun();
}
举报

相关推荐

0 条评论