Failed to mount component: template or render function not defined.

it2023-09-30  74

vue

在编写vue时出现 Failed to mount component: template or render function not defined.

其原因是,在创建** .vue **文件时没有在文件中添加

<template> </template> 而导致无法引用该文件。 所以一定注意:创建.vue文件时,注意一定要写入 <template></template> 即便是没有任何内容,也要写 请养成好习惯

最新回复(0)