The problem of packaging blank pages of local operation after setting browserHistory by dva

I have asked a question before, but there is no answer.
I tried to initialize a project with dva new demo, then npm run build the initialized project directly, and then open the index.html file in the dist directory after the build. The browser is blank. What is the reason, please?

clipboard.png

did not render at all, the whole page is blank, and there is no error!

ask for the answer of the Great God. Some people said before that using browserhistory requires proxy and nginx configuration, so that secondary routes can be displayed, but I can"t show first-level routes now.

after using the default history configuration, the packaged one will work properly! Solve

Feb.27,2021

ref to



buildnginxhtmllocalhost
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-1c283b0-338e6.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-1c283b0-338e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?