Skip to content

Error file already exists when generating code #8

@meisyal

Description

@meisyal

The app will throw an error Uncaught (in promise) Error: EEXIST: file already exists, mkdir ... when generating code. This issue happens because the destination path of generated code contains the existed folder or files. To fix the issue, we should:

  1. Check the destination path of generated code contains existed folder or files.
  2. Ask to overwrite the folder or create a new folder with different name (user chooses the same path, well, they can choose different path).
  3. Generate the code as usual.

This issue will be fixed in the next release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions