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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b26a7d-33bfd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b26a7d-33bfd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?