Repository: storybook
Issue: [Bug]: SB_CORE-SERVER_0002 torybook failed to load the following preset: ./.storybook/main.ts.
Labels: bug,has workaround,turborepo,bun

### Describe the bug

Hi Everyone, I can not update to storybook v8.2, the last working version is v8.1.11 it's always complains about the same error.

here is my log

```bash
bun run build
$ storybook build --docs
storybook v8.2.6

info => Cleaning outputDir: storybook-static
info => Loading presets
SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: ./.storybook/main.ts.

Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.

If you believe this is a bug, please open an issue on Github.

SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: /Users/userme/GitHub/repo/node_modules/@storybook/addon-console/dist/index.js.

Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.

If you believe this is a bug, please open an issue on Github.

Error: Cannot find module 'storybook/internal/preview-api'
Require stack:
- /Users/userme/GitHub/repo/node_modules/@storybook/preview-api/shim.js
- /Users/userme/GitHub/repo/node_modules/@storybook/addon-actions/dist/index.js
- /Users/userme/GitHub/repo/node_modules/@storybook/addon-console/dist/index.js
- /Users/userme/GitHub/repo/node_modules/@storybook/core/dist/common/index.cjs
- /Users/userme/GitHub/repo/node_modules/@storybook/core/dist/telemetry/index.cjs
- ./node_modules/storybook/dist/generate.cjs
- ./node_modules/storybook/bin/index.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
    at Module._resolveFilename (/Users/userme/GitHub/repo/node_modules/esbuild-register/dist/node.js:4799:36)
    at Module._load (node:internal/modules/cjs/loader:1045:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/userme/GitHub/repo/node_modules/@storybook/preview-api/shim.js:1:18)
    at Module._compile (node:internal/modules/cjs/loader:1504:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)

More info:

    at loadPreset (/Users/userme/GitHub/repo/node_modules/@storybook/core/dist/common/index.cjs:150276:13)

More info:

    at loadPreset (/Users/userme/GitHub/repo/node_modules/@storybook/core/dist/common/index.cjs:150276:13)
    at async Promise.all (index 2)
    at async loadPresets (/Users/userme/GitHub/repo/node_modules/@storybook/core/dist/common/index.cjs:150286:55)
    at async getPresets (/Users/userme/GitHub/repo/node_modules/@storybook/core/dist/common/index.cjs:150319:11)
    at async buildStaticStandalone (/Users/userme/GitHub/repo/node_modules/@storybook/core/dist/core-server/index.cjs:255381:11)
    at async withTelemetry (/Users/userme/GitHub/repo/node_modules/@storybook/core/dist/core-server/index.cjs:255711:12)
    at async build (./node_modules/storybook/dist/generate.cjs:738:1337)
    at async Command.<anonymous> (./node_modules/storybook/dist/generate.cjs:741:145)
WARN   Failed to load preset: {"type":"presets","name":"/Users/userme/GitHub/repo/node_modules/@storybook/addon-console/dist/index.js"} on level 1
Error: Cannot find module 'storybook/internal/preview-api'
Require stack:
- /Users/userme/GitHub/reponode_modules/@storybook/preview-api/shim.js
- /Users/userme/GitHub/repo/node_modules/@storybook/addon-actions/dist/index.js
- /Users/userme/GitHub/repo/node_modules/@storybook/addon-console/dist/index.js
- /Users/userme/GitHub/repo/node_modules/@storybook/core/dist/common/index.cjs
- /Users/userme/GitHub/repo/node_modules/@storybook/core/dist/telemetry/index.cjs
- ./node_modules/storybook/dist/generate.cjs
- ./node_modules/storybook/bin/index.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
    at Module._resolveFilename (/Users/userme/GitHub/repo/node_modules/esbuild-register/dist/node.js:4799:36)
    at Module._load (node:internal/modules/cjs/loader:1045:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/userme/GitHub/repo/node_modules/@storybook/preview-api/shim.js:1:18)
    at Module._compile (node:internal/modules/cjs/loader:1504:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
WARN   Failed to load preset: {"options":{"backgrounds":false},"type":"presets","name":"/Users/userme/GitHub/repo/node_modules/@storybook/addon-essentials/dist/index.js"} on level 1
Error: Cannot find module 'storybook/internal/node-logger'
Require stack:
- /Users/userme/GitHub/repo/node_modules/@storybook/addon-essentials/dist/index.js
- /Users/userme/GitHub/repo/node_modules/@storybook/core/dist/common/index.cjs
- /Users/userme/GitHub/repo/node_modules/@storybook/core/dist/telemetry/index.cjs
- ./node_modules/storybook/dist/generate.cjs
- ./node_modules/storybook/bin/index.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
    at Module._resolveFilename (/Users/userme/GitHub/repo/node_modules/esbuild-register/dist/node.js:4799:36)
    at Module._load (node:internal/modules/cjs/loader:1045:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/userme/GitHub/repo/node_modules/@storybook/addon-essentials/dist/index.js:4:18)
    at Module._compile (node:internal/modules/cjs/loader:1504:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
✔ Would you like to help improve Storybook by sending anonymous crash reports? … yes
error: script "build" exited with code 1
```



### Reproduction link

https://github.com/omarkhatibco/storybook-bug

### Reproduction steps

Run bun install and then either `bun dev` or `bun run build`

### System

```bash
Storybook Environment Info:

  System:
    OS: macOS 14.5
    CPU: (12) arm64 Apple M3 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.5.1 - ~/.local/state/fnm_multishells/87651_1722089979737/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.8.2 - ~/.local/state/fnm_multishells/87651_1722089979737/bin/npm <----- active
    pnpm: 9.6.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 127.0.6533.72
    Safari: 17.5
  npmPackages:
    storybook: 8.2.6 => 8.2.6
```


### Additional context

I'm using bun as a package mamanger