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

Process multiple requirejs.config(): (was Cannot read property "length" from undefined) #2

Open
smaira opened this issue Jul 4, 2012 · 1 comment

Comments

@smaira
Copy link

smaira commented Jul 4, 2012

Hi,

I'm trying to optimize a project which uses the step plugin but am unable to do so
due to the error below.

Tracing dependencies for: main
TypeError: Cannot read property "length" from undefined
In module tree:
main
step

TypeError: Cannot read property "length" from undefined
In module tree:
main
step

Project files : http://www.dazzlecode.com/downloads/optimize.zip

Thanks
smaira

@jrburke
Copy link
Member

jrburke commented Jul 4, 2012

Thanks for the code sample. The issue is that r.js only processes the first requirejs.config() call from the mainConfigFile. If you combine all of the requirejs.config calls into one requirejs.config() call.

I'll leave this ticket open to track possibly processing all requirejs.config() calls, but in this case it seems easy enough to just use one requirejs.config call.

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

2 participants