After vue is packaged, an error is reported online Error: Loading chunk 20 failed

1. Encountered problems : There is no problem in the local test of the vue project, only the online error Uncaught SyntaxError: Unexpected token '<' and Error: Loading chunk 20 failed. When it is reported as shown in the figure below 2. Solutions: ⑴Clear the
insert image description here
browser
cache and try again.
⑵ Check the front-end code. If there is no problem with the code, you can add the version number when packaging. Check whether the version number is consistent between the first operation and the operation after refreshing the page. If not, please check whether the cdn cache has been cleared in the background.
(3) Check whether the background cdn cache or other caches are cleared.

おすすめ

転載: blog.csdn.net/DevelopmentW/article/details/128530907