在报错的组件外面增加一个div即可~ 参考:react程序中 Failed to execute 'insertBefore' on 'Node'&& Cannot read property 'nextSibling' of null | zj-john's blog