I developed a nuxt app and it works perfectly when run with "npm run dev". But when I generating the site with "npx nuxt generate" console shows following error. I cant find the error. Please help me.

I developed a nuxt app and it works perfectly when run with "npm run dev". But when I generating the site with "npx nuxt generate" console shows following error. I cant find the error. Please help me.

I have solved the problem. There were two reasons for that in my case.
Mine was actually because I had some form of "<" and ">" which probably interfered with the HTML (?)
I had the same issue. In my case it was caused by a wrong <br> - tag.
I've used `</ br>` instead of `<br />`.
A short annotation. Chrome accepts </br > - tag and renders the page like expected, but the html minifaction does not work properly.