template报下面的错误

发布时间:2022-08-05 发布网站:https://blog.csdn.net/qq_51580852
前端之家收集整理的这篇文章主要介绍了template报下面的错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

今天在打开项目的时候遇到了这个错误:

TypeScript intellisense is disabled on template. To enable,configure `"jsx": "preserve"` in the `"compilerOptions"` property of tsconfig or jsconfig. To disable this prompt instead,configure `"experimentalDisableTemplateSupport": true` in `"vueCompilerOptions"` property.
 

 

template报下面的错误

解决办法,找到文件 jsconfig.json

将这段代码复制进去:

{
  "compilerOptions": {
    "target": "es5","module": "esnext","baseUrl": "./","jsx": "preserve",//在这里添加"jsx": "preserve","moduleResolution": "node","paths": {
      "@/*": [
        "src/*"
      ]
    },"lib": [
      "esnext","dom","dom.iterable","scripthost"
    ]
  }
}

template报下面的错误

以下内容为一个vue中常见的错误

解决办法

vue.esm.js?efeb:628 [Vue warn]: Error in nextTick: "InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': 'width:60%' is not a valid attribute name."[Vue warn]: Error in nextTick: "InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': 'width:60%' is not a valid attribute name."
warn @ vue.esm.js?efeb:628
logError @ vue.esm.js?efeb:1902
globalHandleError @ vue.esm.js?efeb:1897
handleError @ vue.esm.js?efeb:1857
eval @ vue.esm.js?efeb:2000
flushCallbacks @ vue.esm.js?efeb:1924
Promise.then(异步)
timerFunc @ vue.esm.js?efeb:1951
nextTick @ vue.esm.js?efeb:2008
queueWatcher @ vue.esm.js?efeb:4427
update @ vue.esm.js?efeb:4569
notify @ vue.esm.js?efeb:739
reactiveSetter @ vue.esm.js?efeb:1064
eval @ vue-router.esm.js?fe87:3003
eval @ vue-router.esm.js?fe87:3002
updateRoute @ vue-router.esm.js?fe87:2414
eval @ vue-router.esm.js?fe87:2263
eval @ vue-router.esm.js?fe87:2402
step @ vue-router.esm.js?fe87:2001
step @ vue-router.esm.js?fe87:2008
runQueue @ vue-router.esm.js?fe87:2012

总结


以上是前端之家为你收集整理的template报下面的错误全部内容,希望文章能够帮你解决template报下面的错误所遇到的程序开发问题。

如果觉得前端之家网站内容还不错,欢迎将前端之家网站推荐给前端开发程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。