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

Warning: Object #<Object> has no method 'expandFiles' #633

Closed
oluwie opened this issue Jan 24, 2013 · 2 comments
Closed

Warning: Object #<Object> has no method 'expandFiles' #633

oluwie opened this issue Jan 24, 2013 · 2 comments

Comments

@oluwie
Copy link

oluwie commented Jan 24, 2013

Getting an error running grunt-contrib-coffee with grunt v.0.4.0rc7

Console output:
Running tasks: coffee

Running "coffee" task

Running "coffee:compile" (coffee) task
Verifying property coffee.compile exists in config...OK
Files: ./Gruntfile.coffee, ./server.coffee, ./template_test.coffee -> ./*.js
Files: ./config/index.coffee -> ./config/*.js
Files: ./rest/index.coffee -> ./rest/*.js
Files: ./routes/index.coffee -> ./routes/*.js
Files: ./spec/config.spec.coffee, ./spec/rest.spec.coffee, ./spec/routes.spec.coffee -> ./spec/*.js
Options: bare=false, basePath=false, flatten=false
Warning: Object #<Object> has no method 'expandFiles' Use --force to continue.

Aborted due to warnings.```

Printout of my coffee task in gruntfile.coffee is

coffee:
  compile:
    files:
      "./*.js": ["./*.coffee"]
      './config/*.js': ['./config/*.coffee']
      './rest/*.js': ['./rest/*.coffee']
      './routes/*.js': ['./routes/*.coffee']
      './spec/*.js': ['./spec/*.coffee']
@dominicbarnes
Copy link

If you are using grunt@0.4.0rc7, then you need to install grunt-contrib-coffee@0.4.0rc7. The grunt API for grunt.file.expand has changed with b60907b

@tkellen
Copy link
Member

tkellen commented Jan 25, 2013

The experimental support for wildcard destinations has been removed. Please see "building the files object dynamically" @ http://github.com/gruntjs/grunt/wiki/Configuring-tasks for the new method (which works with any task).

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

3 participants