Require.js Error: Load timeout for modules: backbone,jquerymobile

后端 未结 6 2177
名媛妹妹
名媛妹妹 2020-12-04 09:34

I am trying to use r.js to optimize my code but I keep running to this error:

Tracing dependencies for: init

Error: Load timeout for modules: backbon         


        
6条回答
  •  余生分开走
    2020-12-04 09:37

    In case others have this issue and still struggling with it (like I was), this problem can also arise from circular dependencies, e.g. A depends on B, and B depends on A.

    The RequireJS docs don't mention that circular dependencies can cause the "Load timeout" error, but I've now observed it for two different circular dependencies.

提交回复
热议问题