question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Load timeout with RequireJS

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
skovmandcommented, May 17, 2016

+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.

0reactions
jlbookercommented, Nov 10, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found