sveltejs / kit

web development, streamlined
https://kit.svelte.dev
MIT License
18.45k stars 1.89k forks source link

Local build success but in github action errored #11478

Open willin opened 8 months ago

willin commented 8 months ago

Describe the bug

image

Reproduction

https://github.com/willin/sso/actions/runs/7348183360/job/20005836353

Logs

🌼   daisyUI 4.4.24
  ├─ ✔︎ 32 themes added     https://daisyui.com/docs/themes
  ╰─ ★ Star daisyUI on GitHub   https://github.com/saadeghi/daisyui

  .svelte-kit/generated/root.svelte (5:1) Error when using sourcemap for reporting an error: Can't resolve original location of error.
  ✓ 113 modules transformed.
  "missing_component" is not exported by "node_modules/svelte/src/internal/index.js", imported by ".svelte-kit/generated/root.svelte".
  file: /home/runner/work/sso/sso/apps/website/.svelte-kit/generated/root.svelte:5:1
  3:   create_ssr_component,
  4:   escape,
  5:   missing_component,
       ^
  6:   validate_component
  7: } from "svelte/internal";
  error during build:
  RollupError: "missing_component" is not exported by "node_modules/svelte/src/internal/index.js", imported by ".svelte-kit/generated/root.svelte".
      at error (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/parseAst.js:337:30)
      at Module.error (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:12755:16)
      at Module.traceVariable (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:13192:29)
      at ModuleScope.findVariable (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:11609:39)
      at ReturnValueScope.findVariable (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:5911:38)
      at FunctionBodyScope.findVariable (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:5911:38)
      at BlockScope.findVariable (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:5911:38)
      at Identifier.bind (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:7193:40)
      at LogicalExpression.bind (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:4639:23)
      at CallExpression.bind (file:///home/runner/work/sso/sso/node_modules/rollup/dist/es/shared/node-entry.js:4635:28)
  error: script "build" exited with code 1
  Error:  command finished with error: command (/home/runner/work/sso/sso/apps/website) /home/runner/.bun/bin/bun run build exited (1)
@hono-dev/auth-afdian:build
@hono-dev/auth-alipay:build
@hono-dev/auth-github:build
Error: web#build: command (/home/runner/work/sso/sso/apps/website) /home/runner/.bun/bin/bun run build exited (1)

 Tasks:    1 successful, 5 total
Cached:    0 cached, 5 total
  Time:    8.272s 
Failed:    web#build

 ERROR  run failed: command  exited (1)
error: script "build" exited with code 1

✘ [ERROR] Command failed with exit code 1: bun run build

System Info

System:
    OS: macOS 14.3
    CPU: (10) arm64 Apple M1 Max
    Memory: 862.67 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.5.1 - ~/.nvm/versions/node/v20.5.1/bin/node
    npm: 9.8.0 - ~/.nvm/versions/node/v20.5.1/bin/npm
    bun: 1.0.20 - /opt/homebrew/bin/bun
  Browsers:
    Brave Browser: 120.1.61.109
    Safari: 17.3

Severity

annoyance

Additional Information

No response

Conduitry commented 6 months ago

Please provide a minimal reproduction. There are quite a few dependencies in your project, and a lot of moving pieces.