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
The problem is that the three separate <script> tags are minified separately and each end up containing var e = .... One solution would have been to add script type="module", then Parcel would make sure that they don't conflict with each other.
🐛 bug report
When I run
npm start
, everything works fine on the localhost:1234. However, when I trynpm run build
, then the website console gives the errorIt seems like the build process is causing variable name clashing.
🎛 Configuration (.babelrc, package.json, cli command)
package.json
🤔 Expected Behavior
It should map to different variable names
😯 Current Behavior
There are clashing variable names
💁 Possible Solution
🔦 Context
I am trying to make the website load, but I am hitting errors
💻 Code Sample
Full code at https://github.com/The2Innkeeper/3DWebBallistics
Deployment at https://the2innkeeper.github.io/3DWebBallistics/
Website source at https://github.com/The2Innkeeper/3DWebBallistics/tree/gh-pages
index.html
controls.js
main.js
🌍 Your Environment
The text was updated successfully, but these errors were encountered: