After Nuxt is packaged with npm run generate, it is generated in the dist folder. Open index.html and find that js is invalid.

I use the npm run dev command, but I use npm run generate to package and generate the dist folder, and open index.html to find that js is all invalid. When I first met vue, I asked for guidance.

Mar.02,2021

somebody call for help


do not open html, directly. Put the directory in the web server (nginx,node, etc.)


excuse me, how do you solve the same problem

Menu