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

Not building production #181

Open
1 of 4 tasks
danvass opened this issue May 25, 2016 · 7 comments
Open
1 of 4 tasks

Not building production #181

danvass opened this issue May 25, 2016 · 7 comments

Comments

@danvass
Copy link

danvass commented May 25, 2016

Issue details

I cannot build a product version, build folder only contains a font and images folder. Trying to run it with NODE_ENV build just returns 404.

Steps to reproduce/test case

Run gulp command

Please specify which version of generator-hottowel, node and npm you're running

  • [latest] generator-hottowel
  • [6.2.0] Node
  • [3.8.9] Npm

Affected platforms

  • linux
  • windows
  • OS X
  • other (please specify which)

Which gulp command are you running ?

gulp build

@jongo593
Copy link

I was experiencing this same issue after trying to npm install on a clean version of my project.

I was able to resolve it by switching out all of the '^' in the package.json with '~'. There must be a dev dependency that made a major revision recently that causes the build task to fail.

I don't have time right now to go through the package.json, but in theory one could go down the list and change to ~ one by one to find it. For now, my solution is to replace all of the versioning with ~

@danvass
Copy link
Author

danvass commented Jun 18, 2016

@jongo593 Thank you, will try this out.

@Konbonix
Copy link

@jongo593 Thank you! I was having a similar issue when running gulp build or gulp-serve-dev on clean versions the past day. The build process was failing part way with the error 'ENOENT, no such file or directory: \app\template.js' and only writing fonts and images to the build folder.

I've followed your advice and narrowed down the problematic package to gulp-header": "^1.2.2". Changing this to gulp-header": "~1.2.2" and running npm update solved the problem.

I found an issue opened up 18 hours ago on gulp-header's tracker with many other's confirming. So it's probably not going to help @dvassilev but I wanted to leave this comment for others having the same symptoms.

@mmaia
Copy link

mmaia commented Dec 19, 2016

Hi, having the same issue here, only image and fonts are present in the build folder. Environment is a fedora 23 linux.
I have tried the suggested fix, first only on gulp-header but it didn't fix the issue, then I tried replacing all dependencies refs from using ^ to ~ but unfortunately still same issue.

I also have an issue that tests fail, even in a new generated project.

gulp serve-dev works but gulp build does not do the job, also, in my case gulp html doesn't work with error task html doesn't exists.

@alphakanal
Copy link

Same problem here - any solution on this?

@johnpapa
Copy link
Owner

try with new rev please

@dashawk
Copy link

dashawk commented Jul 10, 2017

tried wiith 0.0.11 but its not building the app.css file.

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

7 participants