Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Setting import-alias via the command line fails. #1903

Open
sramam opened this issue May 27, 2024 · 0 comments
Open

bug: Setting import-alias via the command line fails. #1903

sramam opened this issue May 27, 2024 · 0 comments

Comments

@sramam
Copy link

sramam commented May 27, 2024

Provide environment information

System:
OS: macOS 14.5
CPU: (10) arm64 Apple M2 Pro
Memory: 81.02 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.1.0 - ~/.nvm/versions/node/v22.1.0/bin/node
Yarn: 4.2.1 - ~/.nvm/versions/node/v22.1.0/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v22.1.0/bin/npm
bun: 1.1.8 - /opt/homebrew/bin/bun

Describe the bug

Setting import-alias via the command line fails.

Reproduction repo

This happens in a simple shell command. Please see reproduction steps below

To reproduce

To reproduce

mkdir /tmp/import-alias-bug
cd /tmp/import-alias-bug
bun create t3-app@latest --tailwind false --nextAuth true --drizzle true  --trpc true --import-alias "@" --dbProvider sqlite --CI .

To validate that setting import alias fails

mkdir /tmp/import-alias-no-bug
cd /tmp/import-alias-no-bug
bun create t3-app@latest --tailwind false --nextAuth true --drizzle true  --trpc true --dbProvider sqlite --CI .

The output from each of these commands is provided below

Additional information

Actual

$ bun create t3-app@latest --tailwind false --nextAuth true --drizzle true  --trpc true --import-alias "@" --dbProvider sqlite --CI .
   ___ ___ ___   __ _____ ___   _____ ____    __   ___ ___
  / __| _ \ __| /  \_   _| __| |_   _|__ /   /  \ | _ \ _ \
 | (__|   / _| / /\ \| | | _|    | |  |_ \  / /\ \|  _/  _/
  \___|_|_\___|_/‾‾\_\_| |___|   |_| |___/ /_/‾‾\_\_| |_|



Using: bun

ℹ  exists but is empty, continuing...

✔  scaffolded successfully!

Adding boilerplate...
✔ Successfully setup boilerplate for nextAuth
✔ Successfully setup boilerplate for drizzle
✔ Successfully setup boilerplate for trpc
✔ Successfully setup boilerplate for envVariables
✔ Successfully setup boilerplate for eslint

Aborting installation...
TypeError: t.replace is not a function

Expected

bun create t3-app@latest --tailwind false --nextAuth true --drizzle true  --trpc true --dbProvider sqlite --CI .
   ___ ___ ___   __ _____ ___   _____ ____    __   ___ ___
  / __| _ \ __| /  \_   _| __| |_   _|__ /   /  \ | _ \ _ \
 | (__|   / _| / /\ \| | | _|    | |  |_ \  / /\ \|  _/  _/
  \___|_|_\___|_/‾‾\_\_| |___|   |_| |___/ /_/‾‾\_\_| |_|



Using: bun

✔ App scaffolded successfully!

Adding boilerplate...
✔ Successfully setup boilerplate for nextAuth
✔ Successfully setup boilerplate for drizzle
✔ Successfully setup boilerplate for trpc
✔ Successfully setup boilerplate for envVariables
✔ Successfully setup boilerplate for eslint

Installing dependencies...
✔ Successfully installed dependencies!

Initializing Git...
✔ Successfully initialized and staged git

Next steps:
  bun run db:push
  bun run dev
  git commit -m "initial commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant