-
Notifications
You must be signed in to change notification settings - Fork 141
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
Path must be a string. Received undefined Use --force to continue. #222
Comments
I get exactly the same. Did you sort it out? |
I get the same... then I checked the path I've specified, and found a typo... fix the typo solved the issue. |
@n8finch to me it looks like the paths on the left are relative and the paths on the right are absolute, and from the looks of it, the paths on the right are wrong. |
@n8finch are you sure this is correct: |
@fschroiff haha, months ago:-). Issue resolved. |
In my case I was running the task and I had no |
Mine was the same issue as mihaiconstantin. In Node v4.5.0 an empty src dir was fine, but in Node v6.2.0 that's a breaking error: "Path must be a string. Received undefined" |
Is there a solution to this?
Nothing works. |
@Rc85 try using a dot or two, like |
@digeomel I tried those. My scss is in the same directory as Gruntfile.js. My working tree
Using "scss", "./scss", or __dirname + "/scss" , I get
Using "/scss", I get
I'm out of ideas. |
I am getting this error on Travis CI only, locally I am not getting this error. Travis has the same node.js version as my local (6.11.4). Could this still be an issue with path name if it works locally and not on Travis? I've ruled out a typo for this reason. EDIT: For me, it was case sensitivity. For whatever reason, it didn't matter locally on my Mac, but Travis complains if incorrect case. |
For me it was the usage of array instead of a string for cwd, src, and dest. This worked:
|
@brunoscopelliti Mine was the same. There was a typo. Fixed the typo and it worked. Thanks |
Also same issue, path directory was off, thanks |
It is 2024 and it still is an issue!!! |
I too had a typo in the files section of the grunt task. Once I fixed that it worked. |
Hi,
for some reason i get this error: Path must be a string. Received undefined Use --force to continue.
this is the grunt.js code:
Any idea hot to get rid of the error ?
The text was updated successfully, but these errors were encountered: