You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the same problem, tried to find the answer to this question in google, but found only this issue without an answer. Therefore I had to solve the problem myself :)
ATTENTION!!!
I understand that this is a very bad decision, but I do not know how to do it right.
In order for .src to start working, you need to
Open the file node_modules/vinyl-ftp/lib/src.js
Find in this file the line "function getContents (file, cb) {"
Insert after this line the following code:
let fixedFilePath = file.path;
fixedFilePath = fixedFilePath.replace (/\\/ g, "\/");
Replace the lines if (options.buffer) return self.downbuffer (file.path, onContents);
and self.downstream (file.path, onContents);
on if (options.buffer) return self.downbuffer (fixedFilePath, onContents); self.downstream (fixedFilePath, onContents);
respectively
ATTENTION!!!
I remind you that this is a bad solution, because every time you reinstall vinyl-ftp, you will need to do it again. But, nevertheless, it works.
My code:
But, after upgrading to version 6, I get:
when it should be:
GET /mysite/project.zip
How to fix it?
The text was updated successfully, but these errors were encountered: