-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Issue with tpl.js files that are copied over, running through prettier and failing on Heroku #395
Comments
I get the exact same error when building on Netlify. I think I've tracked it down to when a
Feels like a bug somewhere? Setting NODE_ENV to production is common practice when building on services like Heroku. |
@jedrichards I wonder if it's a devDependency being stripped out in production environments... I'll have a play around with Philosophically I wonder if @pedronauck thinks of Docz as a "dev tool" more than a production thing. |
If anyone else has this issue we've just been called Even if the environment is set as
|
docz authors please explain why running |
Docz authors, thank you for the fantastic tool and all the work you’ve done on it. I can’t believe it’s free! When I find some time I’ll try and contribute a fix as a way of saying thanks. @bingo4508 might even help too |
Hi guys, sorry by the too late answer here. So, about the bug, I think that's something related to the OS or some version of Node may be. Because I always use Netlify and this never happened with me. Which version of Node and Docz you're using? |
@pedronauck I think this happens consistently when |
Someone with Linux available to test and fix this? I think that is something related to |
@issuehuntfest has funded $30.00 to this issue. See it on IssueHunt |
1 similar comment
@issuehuntfest has funded $30.00 to this issue. See it on IssueHunt |
@richardtks has submitted a pull request. See it on IssueHunt |
@pedronauck has rewarded $42.00 to @richardtks. See it on IssueHunt
|
Launched on v0.13.0 ✅ |
Bug Report
Describe the bug
npx docz build
fails on heroku, it works perfectly on our OSX machines.It looks to me like the template files that are generated are breaking as they're generated:
Once the broken files are copied over, prettier is failing to parse them.
I've created a repository with the failing build step if you deploy on Heroku here: https://github.com/shortlist-digital/tapestry-lite-docz
(I've since removed our internal library
tapestry-lite
from the heroku app, anddocz build
still fails.Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
This is really strange, and only occurs on Heroku containers.
The text was updated successfully, but these errors were encountered: