Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: $...$exports is not defined when importing dependency specificity #9964

Open
david-tejada opened this issue Sep 27, 2024 · 0 comments

Comments

@david-tejada
Copy link

🐛 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
@david-tejada david-tejada changed the title ReferenceError: $c65b14922fc6cad5$exports is not defined when importing dependency specificity ReferenceError: $...$exports is not defined when importing dependency specificity Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant