IE 11 SCRIPT5002: Function expected
See original GitHub issueDescribe the bug
IE 11 is showing SCRIPT5002: Function expected
error pointing to this line:
https://github.com/bootstrap-vue/bootstrap-vue/blob/2fb5ce823a577fcc2414d78bd43ed9e5351cb1c0/src/utils/dom.js#L110
Steps to reproduce the bug
- Create Vue project.
- Use bootstrap-vue
Yarn serve
- Open in IE11.
Expected behavior
Working with no errors.
Versions
Libraries:
- BootstrapVue: 2.0.0-rc.26
- Bootstrap: 4.3.1
- Vue: 2.6.10
Environment:
- Device: PC
- OS: Ubuntu
- Browser: IE
- Version: 11
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
"SCRIPT5002 function expected" error in IE - Stack Overflow
i am facing an issue and getting error like "SCRIPT5002 function expected" in internet explorer 7-9. this ...
Read more >Function expected in Internet Explorer When my page loads it ...
Function expected in Internet Explorer When my page loads it gives error function expected? ; text/javascript"> $( ; function () { $( ;...
Read more >"SCRIPT5002 function expected" error in IE - - Bountysource
When I try to use vue-material for my application, I get a blank page in IE (IE 11) and the following error in...
Read more >JS Error in Internet Explorer 11 SCRIPT1006: ')' expected
Hi, your plugin does not seem to work in Internet Explorer 11 (IE11). This error breaks the code: SCRIPT1006: ')' expected frontend.js (126,36)....
Read more >JavaScript localStorage object broken in IE11 on Windows 7 ...
This works perfectly well in all my installed browsers except for IE11. An error occurs on the first line 'SCRIPT5002: Function expected'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Make sure you are loading the latest polyfills for IE11
What polyfills are you including in your code?
core-js
?polyfill.io
?@babel/polyfill
?The docs site uses BootstrapVue, and it runs fine on IE11 (note we are including the polyfill.io polyfills)
https://bootstrap-vue.js.org/docs#browser-support
It’s great rather than always sending polyfills to all browsers, even if they don’t need them.