After angular is deployed to apache, a routing error is reported.

when I do not use .htaccess, I can access resources when I enter the dist directory after build. Within the application, I can also access resources by clicking on the routing link. But when my url address is refreshed in the routed state, it will report a 404 error. So I follow the tutorial and set up .htaccess under the root directory of the project. The code is as follows

.
Uncaught SyntaxError: Unexpected token <
polyfills.c6871e56cb80756a5498.js:1 Uncaught SyntaxError: Unexpected token <
main.aa5ad4d7dcb537b60496.js:1 Uncaught SyntaxError: Unexpected token <
Mar.12,2022
Menu