question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8

github_iconTop GitHub Comments

42reactions
zanesterlingcommented, Jun 4, 2015

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

3reactions
mauvmcommented, Mar 23, 2015

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grunt Warning: Path must be a string. Received a null
Running "jshint:main" (jshint) task Warning: Path must be a string. Received null Use --force to continue. Aborted due to warnings.
Read more >
Path must be a string. Received undefined Use --force to ...
Hi, for some reason i get this error: Path must be a string. Received undefined Use --force to continue. this is the grunt.js...
Read more >
Warning: path must be a string Use --force to continue. - Hand ...
This error is usually caused by the path being incorrect. Remember that the path should be relative to the grunt file itself. This...
Read more >
[Solved]-Gruntfile.js Warning: The "path" argument must be of ...
Coding example for the question Gruntfile.js Warning: The "path" argument must be of type string. Received type object Use --force to continue-grunt.js.
Read more >
gruntjs/grunt - Gitter
Warning : The "path" argument must be of type string Use --force to continue. Could someone help me with this warning. http://lpaste.net/362776.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found