oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
72.79k stars 2.64k forks source link

esbuild postinstall script Error: Expected "0.19.11" but got "0.19.12" #12352

Closed gabrielmaldi closed 1 month ago

gabrielmaldi commented 1 month ago

What version of Bun is running?

1.1.18-canary.1+4f3ef0745

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

Run npx bun@canary install in Vercel.

These are my dependencies:

"dependencies": {
    "@arcjet/next": "^1.0.0-alpha.18",
    "@clerk/nextjs": "^5.2.2",
    "@clerk/themes": "^2.1.10",
    "@mailchimp/mailchimp_marketing": "^3.0.80",
    "@mantine/carousel": "^7.11.1",
    "@mantine/colors-generator": "^7.11.1",
    "@mantine/core": "^7.11.1",
    "@mantine/dates": "^7.11.1",
    "@mantine/form": "^7.11.1",
    "@mantine/hooks": "^7.11.1",
    "@mantine/modals": "^7.11.1",
    "@mantine/notifications": "^7.11.1",
    "@mantine/nprogress": "^7.11.1",
    "@portabletext/react": "^3.1.0",
    "@portabletext/types": "^2.0.13",
    "@react-email/components": "^0.0.21",
    "@sanity/image-url": "^1.0.2",
    "@sanity/webhook": "^4.0.4",
    "@t3-oss/env-nextjs": "^0.10.1",
    "@tabler/icons-react": "^3.9.0",
    "@vercel/analytics": "^1.3.1",
    "@vercel/kv": "^2.0.0",
    "@vercel/postgres": "^0.9.0",
    "add-to-calendar-button": "^2.6.18",
    "async": "^3.2.5",
    "change-case": "^5.4.4",
    "chroma-js": "^2.4.2",
    "classnames": "^2.5.1",
    "clsx": "^2.1.1",
    "conditional-wrap": "^1.0.2",
    "dayjs": "^1.11.11",
    "drizzle-orm": "^0.31.2",
    "embla-carousel-autoplay": "^7.1.0",
    "embla-carousel-react": "^7.1.0",
    "jsdom": "^24.1.0",
    "jsonwebtoken": "^9.0.2",
    "lodash": "^4.17.21",
    "mantine-datatable": "7.11.1",
    "next": "^14.2.4",
    "next-sanity": "^9.4.2",
    "next-view-transitions": "^0.2.0",
    "react": "^18.3.1",
    "react-canvas-confetti": "^2.0.7",
    "react-dom": "^18.3.1",
    "react-email": "^2.1.5",
    "react-geolocated": "^4.1.2",
    "react-google-autocomplete": "^2.7.3",
    "react-google-places-autocomplete": "^4.0.1",
    "remix-params-helper": "^0.5.1",
    "resend": "^3.4.0",
    "server-only": "^0.0.1",
    "sqids": "^0.3.0",
    "superjson": "^2.2.1",
    "svix": "^1.24.0",
    "swr": "^2.2.5",
    "talkjs": "^0.22.0",
    "vercel": "^34.3.0",
    "zod": "^3.23.8"
  },
  "devDependencies": {
    "@babel/core": "^7.24.7",
    "@next/bundle-analyzer": "^14.2.4",
    "@types/async": "^3.2.24",
    "@types/bun": "^1.1.6",
    "@types/jsdom": "^21.1.7",
    "@types/jsonwebtoken": "^9.0.6",
    "@types/lodash": "^4.17.6",
    "@types/mailchimp__mailchimp_marketing": "^3.0.20",
    "@types/node": "^20.14.9",
    "@types/react": "^18.3.3",
    "@types/react-dom": "^18.3.0",
    "@types/superagent": "^8.1.7",
    "babel-loader": "^9.1.3",
    "drizzle-kit": "^0.22.8",
    "eslint-plugin-react-compiler": "^0.0.0-experimental-0998c1e-20240625",
    "jiti": "^1.21.6",
    "pg": "^8.12.0",
    "postcss": "^8.4.39",
    "postcss-preset-mantine": "^1.15.0",
    "postcss-simple-vars": "^7.0.1",
    "prettier": "^3.3.2",
    "type-fest": "^4.21.0",
    "typescript": "^5.5.3",
    "typescript-plugin-css-modules": "^5.1.0"
  },
  "optionalDependencies": {
    "@biomejs/biome": "^1.8.3",
    "@next/eslint-plugin-next": "^14.2.4",
    "@storybook/addon-essentials": "^8.1.11",
    "@storybook/addon-styling-webpack": "^1.0.0",
    "@storybook/blocks": "^8.1.11",
    "@storybook/nextjs": "^8.1.11",
    "@storybook/react": "^8.1.11",
    "@testing-library/dom": "^10.3.0",
    "@testing-library/jest-dom": "^6.4.6",
    "@testing-library/react": "^16.0.0",
    "@testing-library/user-event": "^14.5.2",
    "@types/google.maps": "^3.55.11",
    "@types/jest": "^29.5.12",
    "@typescript-eslint/eslint-plugin": "^7.15.0",
    "@typescript-eslint/parser": "^7.15.0",
    "eslint": "^8.57.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-config-airbnb-typescript": "^18.0.0",
    "eslint-config-mantine": "^3.2.0",
    "eslint-plugin-import": "^2.29.1",
    "eslint-plugin-jest": "^28.6.0",
    "eslint-plugin-jsx-a11y": "^6.9.0",
    "eslint-plugin-react": "^7.34.3",
    "eslint-plugin-react-hooks": "^4.6.2",
    "eslint-plugin-testing-library": "^6.2.2",
    "eslint-plugin-unused-imports": "^4.0.0",
    "jest": "^29.7.0",
    "jest-environment-jsdom": "^29.7.0",
    "localtunnel": "^2.0.2",
    "storybook": "^8.1.11",
    "storybook-dark-mode": "^4.0.2",
    "stylelint": "^16.6.1",
    "stylelint-config-standard-scss": "^13.1.0",
    "ts-jest": "^29.1.5"
  },
  "trustedDependencies": [
    "@biomejs/biome",
    "@clerk/shared",
    "@swc/core",
    "bufferutil",
    "core-js-pure",
    "es5-ext",
    "esbuild",
    "sharp",
    "utf-8-validate"
  ],

What is the expected behavior?

Bun install completes successfully.

What do you see instead?

image

Additional information

No response

Jarred-Sumner commented 1 month ago

can you try clearing your vercel build cache?

gabrielmaldi commented 1 month ago

🎯 that fixed it. Thanks, @Jarred-Sumner!

Linking #9544 in case someone else runs into this.