You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to reproduce a minimal web application with parcel as a build tool and the d3.js library.
If I run npx parcel src/index.html, I can see that everything works as expected.
However with the build version by npx parcel build src/index.html I get the error Uncaught ReferenceError: $22b18e23564de7e8$exports is not defined which points to the imported d3.variable.
I built the same minimal example with vite which worked as expected.
🐛 bug report
I tried to reproduce a minimal web application with parcel as a build tool and the d3.js library.
If I run
npx parcel src/index.html
, I can see that everything works as expected.However with the build version by
npx parcel build src/index.html
I get the errorUncaught ReferenceError: $22b18e23564de7e8$exports is not defined
which points to the imported d3.variable.I built the same minimal example with vite which worked as expected.
package.json
demo.js
index.html
🤔 Expected Behavior
When opening the built site, you should see 'Hello World' in the h1 tag and no error message.
😯 Current Behavior
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: