Doesn't work (for me) in ie11
See original GitHub issueWhen I am trying this in ie11 I got the following:
[Vue warn]: Error in created hook: "ReferenceError: "URLSearchParams" is undefined"
[object Error]{description: ""URLSearchP...", message: ""URLSearchP...", name: "ReferenceEr...", number: -2146823279, stack: "ReferenceEr..."}
(expandable to the Object)
I really don’t know what i am doing wrong.
I am using Vue, Typescript, Vue Bootstrap, Vuex, Vue Router. I am using URLSearchParams like this in my main.ts
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import BootstrapVue from 'bootstrap-vue';
import VueMoment from 'vue-moment';
import Datepicker from 'vuejs-datepicker';
import GridLoader from 'vue-spinner/src/GridLoader.vue';
import 'url-search-params-polyfill';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
[…]
const app = new Vue({
data: { loading: false },
router,
store,
created() {
setParams();
},
render: (h) => h(App),
}).$mount('#app');
[…]
function setParams() {
const urlParams = new URLSearchParams(window.location.search);
// already failed
[…]
}
_Originally posted by @Garionion in https://github.com/jerrybendy/url-search-params-polyfill/issues/30#issuecomment-444449982_
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Install problems with Internet Explorer 11 - Microsoft Learn
In the Control Panel, open the Programs and Features box, scroll down to IE11, and then click Uninstall. After the uninstall finishes, restart ......
Read more >What to Do If Internet Explorer 11 Won't Launch on Windows ...
Solution #1: Reset Internet Explorer 11. · Solution #2: Disable Browser Extensions. · Solution #3: Run System File Checker. · Solution #4: Uninstall...
Read more >Fix to the issue of Quickbooks won't open without Internet ...
After updating, make IE your default browser: Open Internet Explorer. Go to the Gear icon in the upper right corner (or click Tools)....
Read more >Internet Explorer 11 has retired and is officially out of support ...
After 25+ years of helping people use and experience the web, Internet Explorer (IE) is officially retired and out of support as of...
Read more >Why Bootstrap Progressbar doesn't work on IE 11
I am trying to bring in the progress bar dynamically but it doesn't work for me on IE 11. <div class="progress-bar progress-bar-success" ...
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
OK, regex is better if you only want to get a part of query string.
https://gist.github.com/jerrybendy/d9f76553ca42907cc95bb342e87beae2
7 lines of codes only 😬
We just went through the same. It doesn’t seem to work unless you have the Symbol polyfill installed on your own.