parcel
parcel copied to clipboard
ReferenceError: $...$exports is not defined when importing dependency `specificity`
🐛 bug report
Importing the dependency specificity
causes Parcel creates a corrupt bundle that errors with the message:
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
The bundle should work fine.
😯 Current Behavior
ReferenceError: $c65b14922fc6cad5$exports is not defined
at /Users/david/Code/parcel-specificity-issue/dist/main.js:3:9585
at Object.<anonymous> (/Users/david/Code/parcel-specificity-issue/dist/main.js:3:169453)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
💁 Possible Solution
🔦 Context
💻 Code Sample
Here is a minimal reproduction repository: david-tejada/parcel-specificity-issue
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 2.12.0 |
Node | v20.17.0 |
npm/Yarn | npm 10.8.2 |
Operating System | macOS 15.0 |