Cannot read properties of null (reading ‘nextSibling’)、 Cannot read properties of null (reading ‘subTree’)、Cannot read properties of null (reading ‘parentNode’)
解决方案:<template>
标签加上根标签
通过路由切换组件的时候,发现从A组件切换到任意其它组件时,总会报错,导致后面组件渲染直接崩溃,一开始还以为是路由有问题(因为组件内容为测试内容,非常简单,只有几个数字),定位了个把小时,仍找不到原因,最后把目光锁定在了组件里,才发现<template>
标签里没有加根标签,直接写了数字用于占位,后面加上根标签,问题解决。