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

"module.exports = multirange" declaration causes TypeError with Vue.js #42

Open
damstaylor opened this issue Sep 20, 2019 · 0 comments
Open

Comments

@damstaylor
Copy link

damstaylor commented Sep 20, 2019

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 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

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