Vue3报错:Failed to fetch dynamically imported module

Vue3 error: Failed to fetch dynamically imported module solution
report error
Translation: Failed to fetch dynamically imported module

At present, three reasons for this error report have been found (to be continued):
① It is a routing path error

component: () => import('路径错误'),

②The routing path is correct, but the file is missing (the routing is written but the file is not written)
③The routing path is correct, but the file name is wrong, so the file cannot be found

When I didn't find the cause of the project problem, I found that in other articles, the addition of setup syntax sugar in Vue3 will also cause this error, but it is not suitable for the error of my project, but I still add the reasons that may cause this error. future projects for reference

④ Added setup syntax sugar

The solution is to modify the correct routing path and observe whether the file name is wrong

Guess you like

Origin blog.csdn.net/weixin_44001222/article/details/128193594