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

Update object val that points to a variable #10

Open
eddiemonge opened this issue Jul 19, 2014 · 0 comments
Open

Update object val that points to a variable #10

eddiemonge opened this issue Jul 19, 2014 · 0 comments

Comments

@eddiemonge
Copy link

When trying to update a config block that was a variable reference, an error was being thrown:

var conf = {
  abc: bar
};

/Users/eddie/Dropbox/Sites/OSS/yeoman/generator/node_modules/gruntfile-editor/index.js:33
    .key(name).value(config);
               ^
TypeError: Object #<Object> has no method 'value'
    at GruntfileEditor.insertConfig (/Users/eddie/Dropbox/Sites/OSS/yeoman/generator/node_modules/gruntfile-editor/index.js:33:16)
    at module.exports (/Users/eddie/Dropbox/Sites/OSS/yeoman/generator-angular/helpers/gruntfile.js:16:18)
    at module.exports.yeoman.generators.Base.extend.writing.build (/Users/eddie/Dropbox/Sites/OSS/yeoman/generator-angular/generators/app/index.js:255:17)
    at /Users/eddie/Dropbox/Sites/OSS/yeoman/generator/lib/base.js:387:14
    at processImmediate [as _immediateCallback] (timers.js:336:15)
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

1 participant