Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

ReferenceError: Can't find variable: HTMLInspector #41

Closed
philipwalton opened this issue Feb 5, 2014 · 5 comments
Closed

ReferenceError: Can't find variable: HTMLInspector #41

philipwalton opened this issue Feb 5, 2014 · 5 comments

Comments

@philipwalton
Copy link
Owner

Clone https://github.com/djforth/image-replace.git and run htmlinspector index.html and you'll see the above error.

ReferenceError: Can't find variable: HTMLInspector
@philipwalton philipwalton mentioned this issue Feb 5, 2014
@philipwalton
Copy link
Owner Author

@adrianstainforth In your specific case it seems to be because index.html is loading RequireJS, and that is conflicting with Browserify's UMD shim.

Browserify detects that AMD is happening on the page, so it doesn't expose the HTMLInspector object on window (since it assumes you'll be requiring it somewhere). I'll have to think about whether I want to support this case.

@adrianstainforth
Copy link

Ahhh, ok, well give me a good excuse to learn Browserify! Well thanks for looking into it :)

@philipwalton
Copy link
Owner Author

I wouldn't necessarily change what you're doing. HTML Inspector should be able to handle this case. I just need to think of the best way.

That being said, Browserify is a cool tool. I recommend learning it.

@philipwalton
Copy link
Owner Author

This should be fixed as of v0.8.0. If you're still having problems let me know.

@djforth
Copy link

djforth commented Feb 17, 2014

Awesome, thank you that works perfectly :)

That said enjoying playing with Browserify!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants