Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template not found #771

Open
Willianwg opened this issue Oct 30, 2022 · 2 comments
Open

Template not found #771

Willianwg opened this issue Oct 30, 2022 · 2 comments

Comments

@Willianwg
Copy link

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]
@svallory
Copy link

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

@danstepanov
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants