jrburke/r.js — Issue #68: Error evaluating module "undefined" at location "undefined" (1.0.3)
Author: alekop
Created: 2011-12-28 06:28:27+00:00
State: open

Hi,

I'm getting an this error when trying to optimize a few files together. The same thing happens with 1.0.2.

Thanks,
-Aleko

$ cat main.js one.js two.js
require(['one', 'two'], function() {});

define([], function() {
return {
one: 1
};
});

define([], function() {
return {
two: 2
};
});

$ node ../lib/r.js -o name=main -out=main-full.js baseUrl=.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Error evaluating module "undefined" at location "undefined":
TypeError: Cannot call method 'charAt' of undefined
fileName:undefined
lineNumber: undefined
http://requirejs.org/docs/errors.html#defineerror
at makeError (/Users/aleko/spark-dir/lib/r.js:178:17)
at execManager (/Users/aleko/spark-dir/lib/r.js:594:23)
at /Users/aleko/spark-dir/lib/r.js:629:25
at execManager (/Users/aleko/spark-dir/lib/r.js:606:17)
at /Users/aleko/spark-dir/lib/r.js:629:25
at execManager (/Users/aleko/spark-dir/lib/r.js:606:17)
at /Users/aleko/spark-dir/lib/r.js:629:25
at execManager (/Users/aleko/spark-dir/lib/r.js:606:17)
at /Users/aleko/spark-dir/lib/r.js:629:25
at execManager (/Users/aleko/spark-dir/lib/r.js:606:17)

$ :-(