gluegun icon indicating copy to clipboard operation
gluegun copied to clipboard

Template not found

Open Willianwg opened this issue 2 years ago • 2 comments

Describe the bug After installing my CLI in a project, i try to run the command generate, but i get the error "template not found (path of the template file) I'm using the default Gluegun folder structure and didn't remove any core file. Only created a simple command an three templates.

To Reproduce Steps to reproduce the behavior:

  1. Create a CLI that creates files with command generate
  2. Publish the code in npm
  3. Install your CLI in any other project
  4. Run the CLI with the generate command
  5. See error

Expected behavior Expect CLI to generate a folder and 3 simple files

Captura de Tela (1)

  • OS: Linux (Gitpod)
  • Gluegun Version [e.g. 5.1.2]

Willianwg avatar Oct 30 '22 16:10 Willianwg

Looks like the path is looking for build/build/templates instead of build/templates

svallory avatar Dec 11 '22 02:12 svallory

this seems to occur when running toolbox.template.generate() and occurred for me when trying to modify the file path (target) using slice rather than replace. Changing back to using replace seemed to resolve the issue. Nevertheless, very odd behavior.

danstepanov avatar Feb 06 '24 16:02 danstepanov