This is wrong! ! ! Just outrageous! ! !
Uncaught SyntaxError: Unexpected token '<'
I configured two sub-routes called HomeNews and HomeMessage in my home and
introduced them into index.js under the router through lazy loading. The
correct operation! ! !
Yes, the browser sometimes displays normal jumps normally, but it's abnormal when jumping around.
One Month Later
After I changed the way it was introduced, no more errors were reported. (I don't know the principle)
import HomeMessage from '../views/HomeMessage';
import HomeNews from "../views/HomeNews";
Maybe I haven’t learned enough, there should be other ways to solve it, and I would like to ask the big guys for advice.