Skip to content

Error on overwriting folders with hyphens #1

@1407arjun

Description

@1407arjun

Describe the bug
Folders having hyphens in their names are not being overwritten at the start of the script.

To Reproduce
Steps to reproduce the behavior:

  1. Create a folder with a name that has a hyphen.
  2. Run npx create-any-app next <name-with-hyphen>
  3. Choose overwrite
  4. See error

Expected behavior
The script should be executed without errors.

Additional context
It seems that the fs.removeSync() function is not able to parse names with hyphens properly, since the same functionality works properly when there are no hyphens in the name of the folder.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions