PANE

Bun install breaks Vite/SvelteKit projects after adding dependencies

13 posts since Sep 2023, all from GitHub.

“What version of Bun is running? 1.3.0+b0a6feca5 What platform is your computer? Darwin 25.0.0 arm64 arm What steps can reproduce the bug? Clone the reproduction repository: https://github.com/Paultje52/bun vite sveltekit problem Install the dependencies using bun install and…”
GitHub
“What version of Bun is running? 1.0.13 What platform is your computer? Vercel Deploy What steps can reproduce the bug? Astro v3.5.5 @astrojs/vercel^5.2.0 astro.config.mjs The problem is at the time of execution of bun install , bun install is executed without error but after…”
GitHub
“Found while running release gates for 699. core/ has a package.json with no devDependencies , no scripts , and no node modules , so the script exits: Reproduces on a clean next checkout, so it is not release specific. It is also not what CLAUDE.md documents — that says core runs…”
GitHub

Users report that running `bun install` or `bun add` in SvelteKit projects causes Vite to fail loading the config, leading to deployment failures. The issue persists across multiple Bun versions and platforms.

devtoolsjavascriptbuild-toolsfrontendbundler
FIT
0%
SIGNAL
52%
SOURCES13
FRESHEST POSTSEP 2
TRACKED SINCE65D AGO

SOURCES (13)

“Found while running release gates for 699. core/ has a package.json with no devDependencies , no scripts , and no node modules , so the script exits: Reproduces on a clean next checkout, so it is not release specific. It is also not what CLAUDE.md…”

GITHUBSep 2

“What version of Bun is running? 1.4.0+34cbb9a40 What platform is your computer? Linux 6.18.33.2 microsoft standard WSL2 x86 64 x86 64 What steps can reproduce the bug? 1. Create 3 files: package.json app1/package.json package1/package.json 2. run bun install 3. run bun prune or bun dedupe What is the expected behavior? bun prune or bun dedupe should not fail, because the lockfile does not match the package.json What do you see instead? Additional information bun install generates this lockfile b”

GITHUBAug 25

“What version of Bun is running? 1.4.0 What platform is your computer? Darwin 25.3.0 arm64 arm What steps can reproduce the bug? Use the attached minimal fixture. It has this dependency graph: All three package.json files exist. There are no lifecycle scripts, registry dependencies, workspaces, or lockfiles. Run: The script runs Bun 1.3.14 and 1.4.0 from clean temporary directories. The equivalent failing command is: Fixture: bun 1.4 transitive file dependencies repro.zip What is the expected beh”

GITHUBAug 24

“What version of Bun is running? 1.4.0 canary.1+5ac120ca3 What platform is your computer? Linux 6.12.86+deb13 amd64 x86 64 x86 64 What steps can reproduce the bug? Hi, I would like to report a behavior in Deno that can be reproduced using the below snippet: What is the expected behavior? Should not throw error What do you see instead? Bun throws error Error also does not mention function name or package name Additional information Reference documentation: https://bun.com/reference/node/module/def”

GITHUBJun 3

“What version of Bun is running? 1.3.0+b0a6feca5 What platform is your computer? Darwin 25.0.0 arm64 arm What steps can reproduce the bug? Clone the reproduction repository: https://github.com/Paultje52/bun vite sveltekit problem Install the dependencies using bun install and then start the vite dev server using bun run dev . What is the expected behavior? The vite development server should start properly and when navigating to http://localhost:5173 you should see a hello world page. The page sho”

GITHUBOct 2025

“What version of Bun is running? 1.2.19+aad3abead What platform is your computer? Darwin 24.3.0 arm64 arm What steps can reproduce the bug? use "nuxt": "^3.17.5", then "dev": "bun bun nuxt dev", What is the expected behavior? no error message What do you see instead? <img width="848" height="230" alt="Image" src="https://github.com/user attachments/assets/f4b9c654 e67a 4b70 96c2 e038ce845520" / Additional information No response”

GITHUBAug 2025

“What version of Bun is running? 1.2.16 What platform is your computer? Darwin 24.5.0 arm64 arm What steps can reproduce the bug? Clone the repo: https://github.com/sharunkumar/orval bun install bug repro npm install + npx orval succeeds bun install + bunx bun orval fails note: makefile helper scripts available with the exact steps error details are present in the readme of the repo, but this seems to be more of a module resolution discrepancy bug between npm/bun, because npm install + bunx bun o”

GITHUBJun 2025

“What version of Bun is running? All versions for the past half of year, currently on 1.2.1 still occurs What platform is your computer? Darwin 24.1.0 arm64 arm but it appears that this also happens on WSL What steps can reproduce the bug? 1. Create sveltekit project with bun 2. Install all dependencies 3. Run it once, Vite caches dependencies 4. Install new dependency via bun install or bun add or bun remove (or aliases) 5. Now when you try to run bun dev you'll get: What is the expected behavio”

GITHUBFeb 2025

“What version of Bun is running? 1.1.30 What platform is your computer? Darwin 24.0.0 arm64 arm What steps can reproduce the bug? In my turborepo project, when I run bun build ./src/index.ts outdir ./dist target bun in my final project, it breaks one of my file as follow: Original file from my dependency @react email/tailwind from react email (already built and minified in node modules). For a better readability I've found the original function in balanced match . This is what bun is giving me as”

GITHUBOct 2024

“What version of Bun is running? 1.1.28 canary.54+0a6594395 What platform is your computer? Darwin 23.6.0 arm64 arm What steps can reproduce the bug? Create a Bun project Install konk (this is my own package, it has a preinstall script that installs a platform specific binary): bun add konk trust Note that the binary is missing. Run bun install The binary is now present What is the expected behavior? The binary would be installed when the package is added the first time. What do you see instead?”

GITHUBSep 2024

“What version of Bun is running? 1.0.18+36c316a24 What platform is your computer? Darwin 23.2.0 arm64 arm What steps can reproduce the bug? When trying to use it directly such as server side rendering, no errors but when trying to bundle it (to either target Bun or Browser) you get Element type is invalid: expected a string (for built in components) or a class/function (for composite components) but got: object. bun run index.tsx and visit the server, no error. Then bun build index.tsx target=bun”

GITHUBDec 2023

“What version of Bun is running? 1.0.13 What platform is your computer? Vercel Deploy What steps can reproduce the bug? Astro v3.5.5 @astrojs/vercel^5.2.0 astro.config.mjs The problem is at the time of execution of bun install , bun install is executed without error but after executing the build of the project, send the above mentioned error What is the expected behavior? Normal installation and correct operation in vercel What do you see instead? Deployment fails and it is necessary to switch to”

GITHUBNov 2023

“What version of Bun is running? 1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983 What platform is your computer? Darwin 22.6.0 arm64 arm What steps can reproduce the bug? Create noopPlugin.ts : Configure the plugin in bunfig.toml: Install example package: @pnpm/read project manifest Create an example file test file: Run bun test . What is the expected behavior? Test passes. The plugin just loads the contents of the file and passes them forward to Bun's internal loader. It should work the same way”

GITHUBSep 2023

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.

Related panes

/ same corner of the problem