DioxusLabs / DioxusLabs/dioxus
Error when creating new project
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
When I run `dx new `, I get
``` bash
? Which sub-template should be expanded? ›
❯ Bare-Bones
Jumpstart
Workspace
ERROR dx new: IO error: Incorrect function. (os error 1)
```
The error appears immediately after I enter the command and before I get to choose any of the sub-templates that are printed to the terminal.
**Steps To Reproduce**
While I'm not sure this works for everyone, this is what I do in Git Bash on my Windows 10 Home machine (if at any point Git Bash can't find the command you are trying to run, restart Git Bash and retry running the command):
1. Install Rust by downloading and running "rustup-init.exe" by clicking on the "Download rustup-init.exe (x64)" butting on the [Install Rust page](https://rust-lang.org/tools/install/). Choose the default settings during the installation.
1. Start Git Bash and run (according to the [Getting Started page](https://dioxuslabs.com/learn/0.7/getting_started/))
``` bash
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
```
1. Install Dioxus by running
``` bash
curl -sSL https://dioxus.dev/install.sh > install.sh
./install.sh
```
1. Try to create a new Dioxus project by running
``` bash
cd /path/to/the/parent/folder/of/the/new/project/
dx new my-dioxus-project
```
**Expected behavior**
When taking the steps outlined in the _Steps To Reproduce_ section, I get the terminal output described in the _Problem_ section.
**Environment:**
- Dioxus version: `dioxus 0.7.2 (35351eb)`
- Rust version: `rustup 1.28.2 (e4f3ad6f8 2025-04-28)`
- OS info: Microsoft Windows 10 Home
- App platform: N/A (the error occurs before I have got to choose a default platform to serve)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.