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
[ERROR] Merino Stack TypeError after creating project, empty folder #95
Comments
Hey @angelhdzmultimedia 👋 This happend, when a folder with the same name already exists (see error message). You can / should just choose a different name for your project in the first step! There's th eoption to re-ask the user in this case for a new name. Let's convert this into a feature request for that (: |
Thanks so much for replying! But I mentioned this: I can clearly see what the error message say, but it's a fresh folder, no other folders have been made, even after reloading VSCode. I did many tests until I figured out this was a bug. |
Same thing on macOS. I tried different folder names that did not exist. It is a bug.
|
Hey you two 👋 I'll look into it - thanks for elaborating! |
So, from checking out the code, I think that the For later documentation, Here's some minimal code that should be able to reproduce what you are experiencing: import { downloadTemplate } from "giget"
const template = await downloadTemplate('github:sidebase/merino#v3', {
dir: 'yyy',
registry: "https://raw.githubusercontent.com/nuxt/starter/templates/templates"
}) The error occurs within the https://github.com/unjs/giget/blob/21a1f0bd0a659ec6ef3ac67255844f83027ddca7/src/_utils.ts#L53-L57 I've opened and merged sidebase/create-sidebase#12 to expand the error logging that will happen when the command fails. Can you please:
This will enable me to see whether the error is with us or with |
Thanks for the progress on this, here is the output of version
|
I also tried a workaround by setting Now I get another error:
|
Environment
Windows_NT
v18.1.0
0.0.0
-
unknown
webpack
-
-
-
Reproduction
No repro. Problem with CLI.
Describe the bug
Fresh project with
pnpm create sidebase@latest
ornpm create sidebase@latest
.Error:
And there are no other folders in the root. Reloaded VSCode workspace. Tried many times with different names.
Ultimately, selected Cheviot Stack and it was successful.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: