Load timeout with RequireJS
See original GitHub issueI just replaced “twiter/typeahead.js” with this repository this morning, hoping to resolve an issue. But, instead, it won’t load anymore.
I installed the component using bower (i.e. it changed "typeahead.js": "^0.11.1"
to "typeahead.js": "corejs-typeahead#^0.11.1"
in my bower.json
file).
I reviewed my build to make sure the exact same file (i.e. typeahead.bundle.min.js
) is referenced in my dependencies (all seems to be unchanged). Launched the app, and I get RequireJS to throw "Uncaught Error: Load timeout for modules: typeahead"
.
My RequireJS config is declared as such :
require.config({
...
paths: {
...
'typeahead': 'path/to/typeahead.bundle.min',
'bloodhound': 'path/to/typeahead.bundle.min',
...
}
});
Has this happened to anyone? How to resolve this?
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How to change module timeout in Require.js? - Stack Overflow
http://requirejs.org/docs/api.html#config-waitSeconds. Per the docs, the default is 7 seconds. You can set it in your require.config call ...
Read more >How to fix Load Timeout for Modules Error in RequireJs
The possible causes for this error Load timeout for modules in RequireJs could be that : · The path to a JavaScript file...
Read more >require.js sometimes throws Load Timeout even though it ...
I've been able to consistently reproduce a problem where require.js loads modules for 200ms, then sits there until waitSeconds expires and throws an...
Read more >Common Errors - RequireJS
1; Load timeout for modules: . ... If you manually code a script tag in HTML to load a script with an anonymous...
Read more >RequireJS, Load timeout for modules! - Saumya
The RequireJS configuration has an option called waitSeconds , which defaults to 7 . Now if the module does not load in 7...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 I’m also getting errors with require.js using the bundle, because typeahead.js and bloodhound are not defined. Please restore - it should be very simple.
I think was already fixed in 212fe89300e4760f15df4dec4e447d1dee21e965. The module is registered anomalously now, so the offending line in the Gruntfile has been completely removed. A newer build (from the newer Gruntfile) should fix this.