requirejs - Error "Unable to get property 'normalize' of undefined or null reference" in require.js with text.js -



requirejs - Error "Unable to get property 'normalize' of undefined or null reference" in require.js with text.js -

i'm making first effort @ using text.js plugin (v2.0.12) require.js (v2.1.15). i've had require working point, however, when effort resolve text dependency, 2 errors. first error unable property 'normalize' of undefined or null reference [require.js, line: 955] then, after allotted time, i'll timeout error html file i'm attempting load. focus of cry help former error.

one curious observation i've noticed if resolve text module without declaring file, there no error. however, when add together file path e.g. text!path/file, error triggered.

additionally, noticed load timeout error references text module _unnormalized2 appended. not sure if that's expected thought odd. help appreciated!

here's block of code errors:

//if current map not normalized, wait //normalized name load instead of continuing. if (this.map.unnormalized) { //normalize id if plugin allows it. if (plugin.normalize) { // error occurs here (line 955) name = plugin.normalize(name, function (name) { homecoming normalize(name, parentname, true); }) || ''; } // ... }

ok, turns out have been self-sabotage! creating shortcut definition text module left out mill method. so, instead of

define('text', ['scripts/text'], function(text) { homecoming text; });

i had:

define('text', ['scripts/text']);

nothing text.js whatsoever.

requirejs requirejs-text

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -