Skip to content

TypeError: URL is not a constructor in replace-info.js  #1658

Closed
@ewrayjohnson

Description

@ewrayjohnson

This occurs with Nodejs 14.7.0
On line 14 of replace-info.js an attempt is made to construct a new URL(...), however URL is not a constructor.
One fix is to change line 1 to:
const URL = require('url').URL;
Another (possibly better) option to fix is to replace new URL with URL.parse

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 6.xwork is associated with a specific npm 6 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions