Under nuxt, there is no error report when npm run dev is stuck.

the problem is shown in figure
clipboard.png

I will record this question by asking and answering myself

Jul.06,2022

students familiar with Vue are well aware that Vue has fairly clear and accurate error warning prompts, but Vue-based Nuxt is not so good.

generally where the card is, that is, which component, in addition to the problem, generally targeted to find it.

what is shown here is the nuxt-error.vue that comes with the card in Nuxt. Finally, the git version is switched for N times, deleted and deleted for N times. It is found that the reason why the value bound in the tag is not defined in data () .

found another reason that can also lead to jam: the tag is misaligned, and a missing tag will get stuck .

if you also find this situation during use, you can try to find the error directionally according to the above reasons.

if you find it useful, you can leave a message.

Menu