Skip to main content
Question

Cannot create URL objects in Widget Code

  • November 24, 2022
  • 1 reply
  • 357 views

Aashrey_Sharma

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

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings