Find out why build is throwing an error occasionally
Closed this issue · 0 comments
stojanovic commented
This is a line where error is thrown: https://github.com/JSBelgrade/website/blob/master/bin/build.js#L58
Error is this:
/home/runner/website/bin/build.js:58
throw err
^
TypeError: html.replace is not a function
at Object.module.exports (/home/runner/website/scripts/helpers/excerpt.js:13:17)
at eval (eval at createFunctionContext (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:10:72)
at prog (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/runtime.js:219:12)
at execIteration (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:57:19)
at Object.<anonymous> (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:66:11)
at Object.eval (eval at createFunctionContext (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:12:31)
at main (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/runtime.js:173:32)
at ret (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/runtime.js:176:12)
at ret (/home/runner/website/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:525:21)
at /home/runner/website/node_modules/metalsmith-layouts/node_modules/consolidate/lib/consolidate.js:713:16
at /home/runner/website/node_modules/metalsmith-layouts/node_modules/consolidate/lib/consolidate.js:146:5
at tryCatcher (/home/runner/website/node_modules/metalsmith-layouts/node_modules/consolidate/node_modules/bluebird/js/main/util.js:26:23)
at Promise._resolveFromResolver (/home/runner/website/node_modules/metalsmith-layouts/node_modules/consolidate/node_modules/bluebird/js/main/promise.js:480:31)
at new Promise (/home/runner/website/node_modules/metalsmith-layouts/node_modules/consolidate/node_modules/bluebird/js/main/promise.js:70:37)
at promisify (/home/runner/website/node_modules/metalsmith-layouts/node_modules/consolidate/lib/consolidate.js:139:10)
at Function.exports.handlebars.render (/home/runner/website/node_modules/metalsmith-layouts/node_modules/consolidate/lib/consolidate.js:703:10)