oven-sh / bun

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

react-icons problem #15152

Open valiyeffa opened 1 week ago

valiyeffa commented 1 week ago

package.json file

{
  "name": "coppola-final",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "start": "vite",
    "build": "vite build",
    "lint": "eslint .",
    "preview": "vite preview"
  },
  "dependencies": {
    "bootstrap": "^5.3.3",
    "coppola-final": ".",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-icons": "^5.3.0",
    "react-router": "^6.28.0",
    "react-router-dom": "^6.28.0",
    "sass": "^1.80.7",
    "semver": "^7.6.3",
    "swiper": "^11.1.14"
  },
  "devDependencies": {
    "@eslint/js": "^9.11.1",
    "@types/react": "^18.3.10",
    "@types/react-dom": "^18.3.0",
    "@vitejs/plugin-react": "^4.3.2",
    "eslint": "^9.11.1",
    "eslint-plugin-react": "^7.37.0",
    "eslint-plugin-react-hooks": "^5.1.0-rc.0",
    "eslint-plugin-react-refresh": "^0.4.12",
    "globals": "^15.9.0",
    "vite": "^5.4.8"
  }
}

How can we reproduce the crash?

when I want run my project it show me error about react-icons , but I download react-icons packet plz help me about it

Relevant log output

Failed to resolve import "react-icons/ri" from "src/pages/HomePage/SecondHomeSect.jsx".

Stack Trace (bun.report)

Bun v1.1.29 (6d43b36) on windows x86_64 [InstallCommand]

panic: Internal assertion failure: unexpected resolution tag

Features: lockfile_migration_from_package_lock

Sentry Issue: BUN-2FG

github-actions[bot] commented 1 week ago

@valiyeffa, the latest version of Bun is v1.1.34, but this crash was reported on Bun v1.1.29.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade
valiyeffa commented 1 week ago

I update my bun to v1.1.34 , but it doesn't work again . It show me same problem though I add react-icons to my project Failed to resolve import "react-icons/fa" from "src/App.jsx". Does the file exist?