sandbox cannot call new URLSearchParams or new URL
for example
let params = new URLSearchParams({
maxRecords: "1",
view: "Grid view",
filterByFormula: `{figmaId} = '${figmaUserId}'`
})
sandbox cannot call new URLSearchParams or new URL
for example
let params = new URLSearchParams({
maxRecords: "1",
view: "Grid view",
filterByFormula: `{figmaId} = '${figmaUserId}'`
})
Best answer by Stephane_Popout
Just tried on my side and not working too.
I guess you should use a polyfill like this lib
They provide type definition here
→ @types/ungap__url-search-params - npm
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.