I am trying to run some example code linked here, but upon start I get this error:
ReferenceError: require is not defined
I know, require.js
is some package for javascript, but it is not mentioned anywhere on the example page? It says just to throw in the javascript code in nsome html skeleton and it should work! Is there a way to fix the code so it does not that extra package?
I also downloaded require.js
myself from somewere, put it in the same directory, included it in the html, and got an error
Error: Module name "colormap" has not been loaded yet for context: _. Use require([])
http://requirejs.org/docs/errors.html#notloaded
in require.js
!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…