Errors: "searchParams: 'URLSearchParams' in self" and "ReferenceError: self is not defined"

31 views
Skip to first unread message

Steve Thompson

unread,
Aug 8, 2019, 5:41:48 PM8/8/19
to MongoDB Stitch Users
I'm using mongodb-stitch-browser-sdk 4.5.0.
I'm simply trying to import Stitch using this code...

import { Stitch } from 'mongodb-stitch-browser-sdk';

...and I get this error:

 searchParams: 'URLSearchParams' in self,
                                       ^
ReferenceError: self is not defined

So this means the Stitch module won't even load.
I've already tried using older versions of mongodb-stitch-browser-sdk.
Same error keeps coming up.  Are there any workarounds for this?

Md. Helal Uddin

unread,
May 1, 2020, 5:35:26 AM5/1/20
to MongoDB Stitch Users
Did you solve the problem?
Reply all
Reply to author
Forward
0 new messages