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

gulp 4 doesn't move files #2296

Closed
aleksey-pro opened this issue Mar 3, 2019 · 13 comments
Closed

gulp 4 doesn't move files #2296

aleksey-pro opened this issue Mar 3, 2019 · 13 comments

Comments

@aleksey-pro
Copy link

aleksey-pro commented Mar 3, 2019

Recently upgraded system to Windows 7 64x and then updated to Node 10.x

All gulp projects fell down working.

I think that gulp 4 will be better for Node 10.x, so I'm showing example with all updated config:

E:\[WEB]\PROJECTS\test-project>node -v
v10.15.1

E:\[WEB]\PROJECTS\test-project>gulp -v
[15:31:29] CLI version 2.0.1
[15:31:29] Local version 4.0.0

image

Project structure
image

Gulpfile.js
image

After running gulp comand - nothing being put into prod folder

Reinstalling Windows or rollback to Node 8.x didn't help.

Tried both 3 and 4 gulp versions, installed glob package - same effect.

I've been trying to debug, read issues, created stackoverflow issue(no one left a comment) - nothing can help.

@phated
Copy link
Member

phated commented Mar 3, 2019

@davegahn why do you have glob installed as a devDep?

edit: also, what is the output in your terminal from the gulp command?

@aleksey-pro
Copy link
Author

aleksey-pro commented Mar 3, 2019

Somitemes feel confusing if I have to install as Dep
Oh, forgot to show console )))
image
No errrors showing

@aleksey-pro
Copy link
Author

Recently I thought that there's something with my Windows or Nodejs, but after I ran a webpack project and it worked well, I decided to write here.

@phated
Copy link
Member

phated commented Mar 3, 2019

I'd say that you should remove the glob dependency (gulp handles that for you), any package-lock or yarnlock file you have, remove node_modules and reinstall.

Also, delete the prod directory in your project.

@aleksey-pro
Copy link
Author

  1. Deleted packege.lock and prod directory
  2. npm prune & rm -r node_modules
  3. npm cache clear --force
  4. npm i
  5. gulp
    Fail((
    image

@phated
Copy link
Member

phated commented Mar 3, 2019

That's beyond weird. None of the core devs have Windows to recreate this. Can you add gulp-debug in between src and dest?

@aleksey-pro
Copy link
Author

  1. npm install --save-dev gulp-debug
    image

I'm not shure which parameters to apply for gulp-debug

@phated
Copy link
Member

phated commented Mar 3, 2019

That's helpful. It means no items are picked up by src. I'm still curious as to why, but can you switch dev/index.html to dev/*.html and run it again?

@aleksey-pro
Copy link
Author

image

@phated
Copy link
Member

phated commented Mar 3, 2019

I'm a little curious actually. what if you renamed your [WEB] directory to just WEB (or just create a new directory and copy the gulp project over to it). I'm thinking the square-brackets might be messing up some pathing stuff.

@aleksey-pro
Copy link
Author

aleksey-pro commented Mar 3, 2019

Amazing!!!
I think this was a reason!!!!
It worked in E:\WEB directory!!!!

Lot of thanks. phated!

@phated
Copy link
Member

phated commented Mar 3, 2019

@davegahn thanks for taking the time to debug, I'll create a follow up issue about those characters.

@phated
Copy link
Member

phated commented Mar 3, 2019

Follow up issue created and linked above.

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

2 participants