Closed bennettfrazier closed 4 years ago
@bennettfrazier you can fix it with:
build: {
extend(config) {
config.resolve.alias['plyr$'] = 'plyr/dist/plyr.polyfilled.js'
},
},
same error
same error, sadly this does not work:
build: { extend(config) { config.resolve.alias['plyr$'] = 'plyr/dist/plyr.polyfilled.js' }, }
Vue-Plyr is breaking on IE11 for me as well; I'm guessing it's because it's not using the polyfilled version of the plyr library. Not using nuxt like the other posters above. Could we get some help with this?
I'll most likely deal with this by adding a direct copy of the component but using polyfilled plyr in an upcoming version. Thanks for letting me know!
Can a conditional option be added to configure support for IE11 with the build transpile as seen in this example: https://github.com/sampotts/plyr/issues/890#issuecomment-515765128?
replace
import Plyr from 'plyr';
with...import Plyr from 'plyr/dist/plyr.polyfilled.js';
Currently plyr needs polyfill support for IE11 and with the vue-plyr component, I cannot get the dependency to work correctly unless someone knows of another way?
Note: I attempted to manually transpile the dependency in my nuxt config but did not seem to resolve..
I am getting this error thrown in IE:
Assignment to read-only properties is not allowed in strict mode
The transpile did however fix IE11 issues with arrow syntax and spread operator.