jondot / hygen

The simple, fast, and scalable code generator that lives in your project.
http://www.hygen.io
MIT License
5.68k stars 256 forks source link

[support] Unable to load my generator #452

Open italomaia opened 1 month ago

italomaia commented 1 month ago

I recently created a generator: https://github.com/italomaia/hygen-axum-podman-template

Now I'm trying to test it with hygen-add, but I'm getting the following error:

> hygen-add axum-podman

Can't add hygen-axum-podman

 [Error: ENOENT: no such file or directory, scandir 'node_modules/hygen-axum-podman/_templates'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'node_modules/hygen-axum-podman/_templates'
}

If I create node_modules/hygen-axum-podman/_templates with mkdir, hygen-add manages to download the template, but then npx hygen is unable to use it. Any ideas?

italomaia commented 1 month ago

Ok, my issue is a duplicate: https://github.com/jondot/hygen-add/issues/10#issue-1728310616