DioxusLabs / DioxusLabs/dioxus

Failing on listing or adding components (if no components used yet) creates components folder in .dx but failing doesnt revert the made changes

Open
#5,214 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

**Steps To Reproduce**

Steps to reproduce the behavior:

- don't have any dioxus components installed (no folder named components in .dx)
- try to add or list component => creates folder named components in .dx folder
- failing on install => no component.json created
- retrying command fails with os error 2

**Expected behavior**

- on fail the made changes should be reverted (in this case the components folder should be deleted)

**Screenshots**

Image

**Environment:**

- Dioxus version: dioxus 0.7.2 (was built without git repository)
- Rust version: rustc 1.89.0 (29483883e 2025-08-04)
- OS info: Windows 10
- App platform: is unimportant

**Questionnaire**

I don't have time to fix this right now, but maybe later.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.