ReferenceError: 'URLSearchParams' is not defined

See original GitHub issue

Hi,

Sentry is reporting the following reference error on Edge version 16.

ReferenceError: 'URLSearchParams' is not defined
  at param(../node_modules/ky/index.js:331:5)

Is something broken at my end of there is an issue with Ky?

Thanks,

Sun

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sindresorhuscommented, Dec 11, 2019

(Old) Edge is not considered a modern browser as it doesn’t auto-update and it’s missing a lot of expected features. Chromium-based Edge, however, is considered a modern browser, but it’s not stable yet.

0reactions
sholladaycommented, Dec 11, 2019

For the record, Edge has URLSearchParams and it should work without a polyfill, but only in Edge 17 and newer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use global URLSearchParams in node - Stack Overflow
If I import 'url-search-params/build/url-search-params'; , I get HTMLAnchorElement is not defined. – Martin Nyolt. Nov 14, 2017 at 8:54. Why don ...
Read more >
ReferenceError: URLSearchParams is not defined error in GAS
Hi! I am trying to send a post api request through GAS but my code doesn't work correctly, it gives me an error...
Read more >
Cannot find name 'URLSearchParams' in TypeScript
To solve the error "Cannot find name URLSearchParams", make sure to add the DOM string to the lib array in your tsconfig.json file...
Read more >
URLSearchParam is undefined error when trying to access list
There seems to be an issue with Edge where the library throws a ReferenceError Exception 'URLSearchParams is undefined' when calling ...
Read more >
uni-app 微信小程序报错ReferenceError
uni-app 微信小程序报错ReferenceError: URLSearchParams is not defined. uni-app框架代码如下:. let param = new URLSearchParams();
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