Replies: 14 comments
-
For IE11 support you only need
No need to detect IE using Blade/Laravel |
Beta Was this translation helpful? Give feedback.
-
It's a known issue with custom properties injected by third parties such as livewire's $wire. There is already a fix in master which will be released in the next release. |
Beta Was this translation helpful? Give feedback.
-
@HugoDF I use IE detection just to reduce file size on most people browsers as it is not needed there. @SimoTod I am still getting the same error even if using the mentioned |
Beta Was this translation helpful? Give feedback.
-
Modern browsers do not download scripts with the nomodule attribute and legacy browsers won't download the version with type="module". Serverside browser detection is less reliable and as Hugo said not needed. I need to check tomorrow, the current build was actually defining custom properties twice in IE but, due to a required polyfill, it was triggering that error. The fix should prevent it. I'll let you know when I get a chance to look into it. |
Beta Was this translation helpful? Give feedback.
-
@ali-awwad the fix is in master but the maintainer hasn't recompiled the build folder so you can't try it using that link, unfortunately. You have to wait for the next release. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem. Any word on when that next release is happening? |
Beta Was this translation helpful? Give feedback.
-
Tagging @calebporzio in here - @agedengaku I'd imagine a new release will be out soon, it's been a month or so since the last one, but I know Caleb has been very busy. |
Beta Was this translation helpful? Give feedback.
-
@ryangjchandler Thank you for getting back to me. Hope that release comes soon. Thanks in advance @calebporzio . |
Beta Was this translation helpful? Give feedback.
-
I can confirm that this problem is fixed when upgrading from 2.7.0 to 2.7.3 |
Beta Was this translation helpful? Give feedback.
-
Cool! I think we're good to close this then? |
Beta Was this translation helpful? Give feedback.
-
I have 2.7.3 version, fresh install with laravel and livewire, my compiles app is in the header, I want to so some click function but I got this error. |
Beta Was this translation helpful? Give feedback.
-
Have you got a |
Beta Was this translation helpful? Give feedback.
-
Yes I did, sorry for the false alarm |
Beta Was this translation helpful? Give feedback.
-
I'm having this issue with built-in dollar-sign attributes (or so it seems?). I'm not using livewire. <div x-init="without($el, '.banner,.banner-title')" x-data="adaptHeight()"> function adaptHeight() {
return {
elementsToRemove: null,
without: function($el, selectors) {
this.elementsToRemove = document.querySelectorAll(selectors);
this.adjust($el);
},
adjust: function($el) {
$el.style.minHeight = '';
let height = 0;
if(this.elementsToRemove.length) {
for (let i=0, il=this.elementsToRemove.length; i < il; ++i) {
let elementToRemove = this.elementsToRemove[i];
height+=elementToRemove.getBoundingClientRect().height;
}
}
$el.style.minHeight = 'calc(100vh - ' + height + 'px)';
}
}
}
What's the fix that was added earlier? Maybe I can take a look at the change and see if I can help. |
Beta Was this translation helpful? Give feedback.
-
Hi;
I have installed a new fresh Laravel 8 that comes with Livewire and Alpinejs preinstalled.
For IE11 support I followed the documentation by using
however, a simple example of burger menu open & close
But it shows the following error in IE11 :
SCRIPT5078: Cannot redefine non-configurable property '$wire'
Removing
@livewireScripts
solves the issue , but I have to use Livewire with my project.Beta Was this translation helpful? Give feedback.
All reactions