tkellen / requirejs-library-skeleton

RequireJS / Jasmine / r.js / almond skeleton for javascript libraries and modules.
MIT License
85 stars 12 forks source link

r.js build error #12

Open monobyte opened 11 years ago

monobyte commented 11 years ago

I'm getting an error running the build:

$ node vendor/r.js -o build.js

Error: Missing either a "name", "include" or "modules" option at Function.build.createConfig (c:\Users\dcarte10\Dev\Libraries\requirejs-library-skeleton\vendor\r.js:14901:19)

Any ideas why this is happening?

tkellen commented 11 years ago

Sorry, I don't. I'm not actively supporting this repo right now. You're dealing directly with r.js when you do this though--you might have some luck asking @jrburke and linking him here.

jrburke commented 11 years ago

@monobyte sounds like build.js is missing a property that is needed to do the build. r.js tries to guess by saying "name", "include" or "modules", but if you list the contents of build.js, it would likely point to the problem.

tkellen commented 11 years ago

@jrburke those properties are actually listed in the build.js for this repo. It's running an older version of r.js / almond, though.

jrburke commented 11 years ago

Ah OK. Looks like the build.js actually calls requirejs.config() instead of just being an object literal with build config. So this may work better:

node vendor/r.js -o mainConfigFile=build.js