Uncaught TypeError: URL is not a constructor using WHATWG URL object support for electron

I faced the same issue, then I looked into the url module and found a solution

For Node V6 use,

const URL = require('url').Url;

or

const { Url } = require('url'); 

If you look into the module, it exports 5 methods one of which is Url, so if you need to access Url, you can use either of the two methods

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)