Skip to content

Conversation

Songmu
Copy link

@Songmu Songmu commented Feb 4, 2025

Thank you for developing such wonderful OSS.

When I ran create-create-app using Bun, the following error occurred.

$ bun create create-app hoge                                                       (node:49250) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
? Description description
? Author name Songmu
? Author email [email protected]
? Template default
? License MIT

Creating a new package in /Users/Songmu/temporary/work-20250204-195056/create-hoge.

Initializing a git repository
> git init
Installing the latest version of create-create-app
# TypeError
s is not iterable (cannot read property undefined)

TypeError: s is not iterable (cannot read property undefined)
    at K (/private/tmp/bunx-501-create-create-app@latest/node_modules/create-create-app/lib/cli.js:2:2100)
    at _ (/private/tmp/bunx-501-create-create-app@latest/node_modules/create-create-app/lib/cli.js:5:76)
    at after (/private/tmp/bunx-501-create-create-app@latest/node_modules/create-create-app/lib/cli.js:20:336)
    at le (/private/tmp/bunx-501-create-create-app@latest/node_modules/create-create-app/lib/cli.js:5:351)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

# Environment
- create-create-app: 7.3.0
- System > OS: macOS 15.3
- Binaries > Node: 22.4.0 - ~/.local/share/mise/installs/node/22.4.0/bin/node

If you think this is a bug, please report at https://github.com/uetchy/create-create-app/issues along with the information above.

This is because create-create-app does not support Bun as a package manager.

In the pull request, I supported Bun and added error handling within the switch statement to make the error message easier to understand.

It is up to you to decide whether or not we should support Bun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant