LinkedInAttic / inject

AMD and CJS dependency management in the browser
http://www.injectjs.com
Other
464 stars 48 forks source link

Getting a "Module is not available" error #304

Open patrickliechty opened 10 years ago

patrickliechty commented 10 years ago

"Unable to create instance of the 'OpenSD' control: Error: module OpenSD failed to load successfully: Runtime error in OpenSD(https://edge.fscdn.org/assets/js/modules/OpenSD-61c59054d21f18a44e03f3d7c62f30dc.js) module TooltipBS is not available @ Line: -10 Column: 35862 "

We are getting this error when the code is minified. We are not sure if this is a parsing error or what. It is very vague. And this module does load on a different page when the code is minified.

More than anything, what does this error ("module TooltipBS is not available") mean? Why did it fail?

jakobo commented 10 years ago

Hi Patrick. A couple of questions:

In your console, what does the value of Inject.version equal? I want to make sure we are looking at the same code base.

Regarding the vagueness, it seems the TooltipBS module wasn't loaded. Can you see if this module is showing up in your browser's network tab? We do need to ensure 404 errors are propagated to the console to assist in debugging.

Thanks for answering the two above items and we'll help you get things up and running.

On Friday, June 27, 2014, Patrick Liechty notifications@github.com wrote:

"Unable to create instance of the 'OpenSD' control: Error: module OpenSD failed to load successfully: Runtime error in OpenSD( https://edge.fscdn.org/assets/js/modules/OpenSD-61c59054d21f18a44e03f3d7c62f30dc.js) module TooltipBS is not available @ Line: -10 Column: 35862 "

We are getting this error when the code is minified. We are not sure if this is a parsing error or what. It is very vague. And this module does load on a different page when the code is minified.

More than anything, what does this error ("module TooltipBS is not available") mean? Why did it fail?

— Reply to this email directly or view it on GitHub https://github.com/linkedin/inject/issues/304.

--Jakob

patrickliechty commented 10 years ago

We are on an older version. 0.5.2 The Module does not show up in the network tab.

jakobo commented 10 years ago

Thanks Patrick. Do you mind sharing your Inject configuration? I'd be curious to see what rules you have, as those are often the culprit. (Also, if there are no deprecated APIs in use, we may also be able to see if a more modern version of Inject fixes the issue).

--Jakob

On Fri, Jun 27, 2014 at 1:13 PM, Patrick Liechty notifications@github.com wrote:

We are on an older version. 0.5.2 The Module does not show up in the network tab.

— Reply to this email directly or view it on GitHub https://github.com/linkedin/inject/issues/304#issuecomment-47395114.