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 could not be found! with astro@latest -- --template #12507

Closed
1 task
Keshav-writes-code opened this issue Nov 22, 2024 · 2 comments
Closed
1 task
Labels
needs triage Issue needs to be triaged

Comments

@Keshav-writes-code
Copy link

Keshav-writes-code commented Nov 22, 2024

Astro Info

Astro                    v4.16.14
Node                     v20.17.0
System                   Linux (x64)
Package Manager          bun
Output                   static
Adapter                  none
Integrations             unocss
                         @astrojs/svelte
                         astro-icon

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

So astro allows you create new Projects by giving it a github repo in this syntax as mentioned in the docs

# create a new project based on a GitHub repository’s main branch
npm create astro@latest -- --template <github-username>/<github-repo>

i wanted to create a project using my own git repo so i ran this
bun create astro@latest -- --template keshavWebDev-personal/astroUnocssDaisyui-template
but i got this error

 astro  Launch sequence aborted.


      ▲  error
         Template keshavWebDev-personal/astroUnocssDaisyui-template could not be found!
      ◼  check
         https://astro.build/examples

tried with npm

 astro  Launch sequence aborted.

      ▲  error
         Template keshavWebDev-personal/astroUnocssDaisyui-template could not be found!
      ◼  check
         https://astro.build/examples
npm error code 1
npm error path /home/keshav/Programming Stuff/Projects/temp/astroUnocssDaisyui-template
npm error command failed
npm error command sh -c create-astro --template keshavWebDev-personal/astroUnocssDaisyui-template
npm error A complete log of this run can be found in: /home/keshav/.npm/_logs/2024-11-22T14_47_11_076Z-debug-0.log

the log it generated :-
2024-11-22T14_47_11_076Z-debug-0.log

Tried with my Other Repos, they all worked but not this specific one

What's the expected result?

It should See the Github Repo as other repos are recognized no problems

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics?file=README.md

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Nov 22, 2024
@bluwy
Copy link
Member

bluwy commented Nov 22, 2024

Duplicate of #12453

@bluwy bluwy marked this as a duplicate of #12453 Nov 22, 2024
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2024
@Keshav-writes-code
Copy link
Author

thanks, the fix was to aslso mention the branch name by adding a '#master' after the repo name without space

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

No branches or pull requests

2 participants