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
Cannot use joymap from a CodeSandbox React app, which seems to also import babel-polyfill. The issue does not reproduce in CodeSandbox Vanilla (Parcel) template.
But maybe there's also a solution from the CodeSandbox side which could make using such libraries possible.
Error: only one instance of babel-polyfill is allowed
at evaluate (https://3xlknpxpnq.codesandbox.io/node_modules/babel-polyfill/lib/index.js:10:9)
at oe (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:266028)
at e.value (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:277949)
at e.value (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:249394)
at d (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:277743)
at evaluate (https://3xlknpxpnq.codesandbox.io/node_modules/joymap/bin/index.js:8:1)
at oe (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:266028)
at e.value (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:277949)
at e.value (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:249394)
at d (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:277743)
at evaluate (https://3xlknpxpnq.codesandbox.io/src/index.js:11:15)
at oe (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:266028)
at e.value (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:277949)
at e.value (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:249394)
at e.value (https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:249167)
at https://codesandbox.io/static/js/sandbox.c7332c5c.js:1:67799
at g (https://codesandbox.io/static/js/common-sandbox.3b0bd51a.chunk.js:1:156219)
at Generator._invoke (https://codesandbox.io/static/js/common-sandbox.3b0bd51a.chunk.js:1:156007)
at Generator.e.(anonymous function) [as next] (https://codesandbox.io/static/js/common-sandbox.3b0bd51a.chunk.js:1:156398)
at n (https://codesandbox.io/static/js/common-sandbox.3b0bd51a.chunk.js:1:169318)
at https://codesandbox.io/static/js/common-sandbox.3b0bd51a.chunk.js:1:169414
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🐛 bug report
Description of the problem
Cannot use
joymap
from a CodeSandbox React app, which seems to also importbabel-polyfill
. The issue does not reproduce in CodeSandbox Vanilla (Parcel) template.Recommended solution is to not import
babel-polyfill
in library code: https://babeljs.io/docs/en/babel-polyfill/#details so I filed an issue tojoymap
: diegodoumecq/joymap#6But maybe there's also a solution from the CodeSandbox side which could make using such libraries possible.
Code:
How has this issue affected you? What are you trying to accomplish?
Trying to use
joymap
package fromnpm
as a dependency.Link to sandbox: link (optional)
Your Environment
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
The text was updated successfully, but these errors were encountered: