-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Livewire not initializing in IE11 and Edge #585
Comments
I'm not a Babel expert, but this might be of help https://babeljs.io/docs/en/babel-plugin-proposal-object-rest-spread |
Yeah, that's probably right. I'd like Livewire to support those browsers, so I'd love it if someone can try to get this fixed and PR the fix. Thanks! |
#586 |
@ruudschuurmans Thank you for fixing this with your pr! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hello! Thanks so much for this great package.
It seems Livewire is not initalizing in IE11 and Edge. Tested in
IE11
andEdge 42
. This seems to be related to the use of spread syntax in object literals (see additional context below).To Reproduce
@livewireScripts
to your viewExpected identifier, string or number
Expected behavior
I expected livewire to initalize
Screenshots
It seems to have to do with this code snippet (according to Edge):
PrefetchMessage.js
Desktop:
Additional context
My suspicion is that it has to do with the use of spread syntax in object literals (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#Spread_in_object_literals), it seems this is not supported by earlier versions of Edge and Internet Explorer 11. We might be able to "transpile" this problem away using Babel?
The text was updated successfully, but these errors were encountered: