Hi,
I am trying to use a remix of the handlebars template example which works fine until I create new partials and include them in the index.hbs. The existing ones work but mine do not…
Here is the glitch in question
I am literally copying and pasting the file names as well as the syntax so I don’t understand why my new additions don’t work?
For example I have one that works like so
views/partials/head.hbs
referenced like so
{{> head }}
That works
and then I create a new one like
views/partials/test.hbs
and reference it like so
{{> test}}
and that new one breaks it, I am given the following error message
Error: /app/views/index.hbs: The partial test could not be found
at Object.invokePartial (/rbd/pnpm-volume/3e655f46-b0ef-4082-a1c7-cf8140757907/node_modules/.registry.npmjs.org/handlebars/4.0.5/node_modules/handlebars/dist/cjs/handlebars/runtime.js:266:11)
at Object.invokePartialWrapper [as invokePartial] (/rbd/pnpm-volume/3e655f46-b0ef-4082-a1c7-cf8140757907/node_modules/.registry.npmjs.org/handlebars/4.0.5/node_modules/handlebars/dist/cjs/handlebars/runtime.js:68:39)
at Object.eval [as main] (eval at createFunctionContext (/rbd/pnpm-volume/3e655f46-b0ef-4082-a1c7-cf8140757907/node_modules/.registry.npmjs.org/handlebars/4.0.5/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), :9:28)
at main (/rbd/pnpm-volume/3e655f46-b0ef-4082-a1c7-cf8140757907/node_modules/.registry.npmjs.org/handlebars/4.0.5/node_modules/handlebars/dist/cjs/handlebars/runtime.js:173:32)
at ret (/rbd/pnpm-volume/3e655f46-b0ef-4082-a1c7-cf8140757907/node_modules/.registry.npmjs.org/handlebars/4.0.5/node_modules/handlebars/dist/cjs/handlebars/runtime.js:176:12)
at ret (/rbd/pnpm-volume/3e655f46-b0ef-4082-a1c7-cf8140757907/node_modules/.registry.npmjs.org/handlebars/4.0.5/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:525:21)
at /rbd/pnpm-volume/3e655f46-b0ef-4082-a1c7-cf8140757907/node_modules/.registry.npmjs.org/hbs/4.0.1/node_modules/hbs/lib/hbs.js:63:19
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
Am I missing something? Thanks for any help