question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work (for me) in ie11

See original GitHub issue

When 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:open
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jerrybendycommented, Dec 5, 2018

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 😬

0reactions
christopher-franciscocommented, Jun 24, 2020

We just went through the same. It doesn’t seem to work unless you have the Symbol polyfill installed on your own.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found