Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeMirror not found #1

Open
purplesyringa opened this issue Oct 21, 2017 · 0 comments
Open

CodeMirror not found #1

purplesyringa opened this issue Oct 21, 2017 · 0 comments

Comments

@purplesyringa
Copy link

I can see this code in your library:

if (!CodeMirror && !window.CodeMirror) var CodeMirror = window.CodeMirror = require("codemirror");
CodeMirror.defineMode("icedcoffeescript", CodeMirrorIcedCoffeeScript);
CodeMirror.defineMIME("text/x-icedcoffeescript", "icedcoffeescript");

I don't know how this happens, but for me CodeMirror is undefined and window.CodeMirror is set. require is not called, though CodeMirror is not accessible. Maybe change this code to:

if (!CodeMirror && !window.CodeMirror) var CodeMirror = window.CodeMirror = require("codemirror");
else if(!CodeMirror) var CodeMirror = window.CodeMirror;
CodeMirror.defineMode("icedcoffeescript", CodeMirrorIcedCoffeeScript);
CodeMirror.defineMIME("text/x-icedcoffeescript", "icedcoffeescript");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant