Below is the structure of my folders:
app
└───templates
├───templ1.hbs
├───templ2.hbs
└───templ3.hbs
I am looking to compile (precompile) all templN.hbs handlebars template files into one templ.js file. However, when I attempt to do this through the console
$ handlebars *.hbs -f templ.js
The compilation process fails with the following error message
(...)\AppData\Roaming\npm\node_modules\handlebars\bin\handlebars:120
throw err;
^
Error: Unable to open template file "*.hbs"
at (...)\AppData\Roaming\npm\node_modules\handlebars\dist\cjs\precompiler.js:107:25
at FSReqWrap.oncomplete (fs.js:82:15)
What could be causing this issue?