parcel-bundler / parcel

The zero configuration build tool for the web. πŸ“¦πŸš€
https://parceljs.org
MIT License
43.5k stars 2.27k forks source link

Crash when building specific library #9933

Open ronikiienko opened 2 months ago

ronikiienko commented 2 months ago

πŸ› bug report

When importing anything from a library, parcel build process panicks without any clues why. When building using vite bundler, it works. I also created a minimal repo where this happens

πŸŽ› Configuration (.babelrc, package.json, cli command)

{
  "name": "try-react-pdf-2",
  "version": "1.0.0",
  "description": "",
  "scripts": {
    "start": "parcel src/index.html --host localhost",
    "build": "parcel build src/index.html"
  },
  "private": true,
  "dependencies": {
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-pdf-highlighter-extended": "^8.1.0"
  },
  "devDependencies": {
    "parcel": "^2.12.0",
    "process": "^0.11.10"
  }
}

πŸ€” Expected Behavior

Successful build, or if issue is within a library, more informative error logs

😯 Current Behavior

Crash with following message:

thread '<unnamed>' panicked at src\values\color.rs:3225:12:
internal error: entered unreachable code
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

πŸ’ Possible Solution

πŸ”¦ Context

I was trying to build the project

πŸ’» Code Sample

🌍 Your Environment

Software Version(s)
Parcel 2.12.0
Node 20.16.0
npm/Yarn npm 10.8.1
Operating System Windows 11
arktimo commented 2 months ago

same