Skip to main content
Aashrey_Sharma
New Participant
November 24, 2022
Question

Cannot create URL objects in Widget Code

  • November 24, 2022
  • 1 reply
  • 384 views

Hi Figma,

I’m trying to create a URL object from a string to check if the string is a properly formatted URL. However my code fails as shown below.

After looking up the issue, it seems like this issue shouldn’t happen since URL is already included in NodeJS. But clearly it isn’t being found here.

What am I missing? Any help would be appreciated 🙂

Cheers!

This topic has been closed for replies.

1 reply

Samil_Can
July 29, 2023

I also faced this issue. But thanks to core-js GitHub - zloirock/core-js: Standard Library polyfill I managed to overcome the issue.