lwb-2021 2022-05-03 13:04 采纳率: 50%
浏览 72
已结题

Vue.js页面不显示

做vue项目的时候出现了问题,页面空白,控制台报错


<template>
  <App>
  </App>
</template>
<script>
export default {
  name: "App"
}
//这么写控制台里还是会报错
</script>

<style>
</style>

报错内容:

app.js:149 Uncaught RangeError: Maximum call stack size exceeded
    at Object.get (runtime-core.esm-bundler.js?d2dd:6900:1)
    at Object.set (runtime-core.esm-bundler.js?d2dd:6811:1)
    at Object.defineProperty (runtime-core.esm-bundler.js?d2dd:6862:1)
    at Function.defineProperty (<anonymous>)
    at def (shared.esm-bundler.js?69a7:560:1)
    at markRaw (reactivity.esm-bundler.js?89dc:957:1)
    at setupStatefulComponent (runtime-core.esm-bundler.js?d2dd:7098:1)
    at setupComponent (runtime-core.esm-bundler.js?d2dd:7063:1)
    at mountComponent (runtime-core.esm-bundler.js?d2dd:4951:1)
    at processComponent (runtime-core.esm-bundler.js?d2dd:4926:1)

全部展开之后

get    @    runtime-core.esm-bundler.js?d2dd:6900
set    @    runtime-core.esm-bundler.js?d2dd:6811
defineProperty    @    runtime-core.esm-bundler.js?d2dd:6862
def    @    shared.esm-bundler.js?69a7:560
markRaw    @    reactivity.esm-bundler.js?89dc:957
setupStatefulComponent    @    runtime-core.esm-bundler.js?d2dd:7098
setupComponent    @    runtime-core.esm-bundler.js?d2dd:7063
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4951
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
mountComponent    @    runtime-core.esm-bundler.js?d2dd:4968
processComponent    @    runtime-core.esm-bundler.js?d2dd:4926
patch    @    runtime-core.esm-bundler.js?d2dd:4518
componentUpdateFn    @    runtime-core.esm-bundler.js?d2dd:5066
run    @    reactivity.esm-bundler.js?89dc:185
setupRenderEffect    @    runtime-core.esm-bundler.js?d2dd:5185
  • 写回答

2条回答 默认 最新

  • go_with_dream 2022-05-03 13:21
    关注

    亲,代码死循环了,把第三和第四行删掉试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 5月12日
  • 已采纳回答 5月4日
  • 创建了问题 5月3日

悬赏问题

  • ¥15 verilog modelsim仿真
  • ¥15 Power BI 里面 帕累托图突出显示前20
  • ¥50 用预估矫正法,分数阶微分方程组传染病的最优控制代码怎么写
  • ¥15 画个数据流程图,手画也行
  • ¥60 AS自带模拟器AVD Root 和 Xposed安装
  • ¥15 Esp32的microPython设备中main.py文件无法开机自启动
  • ¥30 哪位搞Android的编程师可以帮我远程一下,悬赏30元
  • ¥15 solidity部署上合约,可以mint,也继承接口了,在区块链也不显示代币名字
  • ¥15 讨论 博士论文交互项怎么讨论?
  • ¥50 在集成BiLSTM和GCN模型时遇到了问题