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: path must be a string Use --force to continue. #24

Closed
slavede opened this issue Mar 10, 2015 · 8 comments
Closed

Warning: path must be a string Use --force to continue. #24

slavede opened this issue Mar 10, 2015 · 8 comments

Comments

@slavede
Copy link

slavede commented Mar 10, 2015

I have grunt task for babel as it's described on Babel official page:

babel : {
  options: {
      sourceMap: true
    },
  dist : {
    files : {
      'app/scripts/controllers/target-babel.js' : 'app/scripts/controllers/src.js'  
    }
  }
},

After running grunt babel I get:

Running "babel:dist" (babel) task
Warning: path must be a string Use --force to continue.

Aborted due to warnings.
@slavede slavede closed this as completed Mar 10, 2015
@mauvm
Copy link

mauvm commented Mar 23, 2015

I'm having the same issue. How did you solve this?

@slavede
Copy link
Author

slavede commented Mar 23, 2015

Hey, I closed this as invalid since I did stupid thing...path was wrong :), double check that :)

@mauvm
Copy link

mauvm commented Mar 23, 2015

Oops. You are absolutely right. I switched the source and dest paths. 😁

@zanesterling
Copy link

It would be nice if the error message were more useful.

@Vulle
Copy link

Vulle commented Nov 25, 2015

I see that this case is closed but I would appreciate some help.
I'm getting:
Running "watch" task
Waiting...
Warning: Path must be a string. Received undefined

I haven't changed any paths. So I don't understand why it could happen.
Thanks!

@mauvm
Copy link

mauvm commented Nov 30, 2015

@Vulle Then it's probably a change in package version. What does your Gruntfile and package.json look like?

@Vulle
Copy link

Vulle commented Nov 30, 2015

@mauvm
I installed grunt-contrib-watch and it worked with grunt serve.. The "watch" worked and then I got problem with grunt build, similar problem.
So I reinstalled my project, now it works.

Thanks for answering!

@at-loctd
Copy link

my code do work well
files: { 'build/js/es6_demo.js': 'dev/js/es6.js'}

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

5 participants