generator-hottowel icon indicating copy to clipboard operation
generator-hottowel copied to clipboard

Not building production

Open danvass opened this issue 8 years ago • 7 comments

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
  • [x] OS X
  • [ ] other (please specify which)

Which gulp command are you running ?

gulp build

danvass avatar May 25 '16 14:05 danvass

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 ~

jongo593 avatar Jun 18 '16 00:06 jongo593

@jongo593 Thank you, will try this out.

danvass avatar Jun 18 '16 01:06 danvass

@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.

Konbonix avatar Jun 18 '16 02:06 Konbonix

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.

mmaia avatar Dec 19 '16 19:12 mmaia

Same problem here - any solution on this?

alphakanal avatar Feb 05 '17 12:02 alphakanal

try with new rev please

johnpapa avatar Feb 27 '17 01:02 johnpapa

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

dashawk avatar Jul 10 '17 10:07 dashawk