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 multirange polyfill works just fine in JSFiddle, but won't work in my Vue.js project.
Line 112 in multirange.js is the issue: module.exports = multirange; which gives me the following error: "TypeError: Cannot assign to read only property 'exports' of object '#<Object>'"
If I comment that line, the component would be loaded as a simple HTML input range element...
I looked for solutions on the Internet and found that using export ... instead of module.exports = ... could solve the issue, but I can't manage to use it properly (I'm using Vue.js which only allows me to use export on the top of the page). Is there a proper way to import this IIFE with the export default statement?
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
The multirange polyfill works just fine in JSFiddle, but won't work in my Vue.js project.
Line 112 in multirange.js is the issue:
module.exports = multirange;
which gives me the following error:"TypeError: Cannot assign to read only property 'exports' of object '#<Object>'"
If I comment that line, the component would be loaded as a simple HTML input range element...
I looked for solutions on the Internet and found that using
export ...
instead ofmodule.exports = ...
could solve the issue, but I can't manage to use it properly (I'm using Vue.js which only allows me to useexport
on the top of the page). Is there a proper way to import this IIFE with theexport default
statement?Thanks
The text was updated successfully, but these errors were encountered: