question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v1.3.0 is a breaking change via node-forge upgrade in node < 10: "ReferenceError: URLSearchParams is not defined"

See original GitHub issue

If you are running node < 10, the upgrade to node-forge 1.x contained in selfsigned@1.3.0 produces the following error because URLSearchParams is not natively supported:

/Users/bneff/repos/blocks/node_modules/selfsigned/node_modules/node-forge/lib/log.js:305
    query = new URLSearchParams();
    ^

ReferenceError: URLSearchParams is not defined
    at Object.<anonymous> (/Users/bneff/repos/blocks/node_modules/selfsigned/node_modules/node-forge/lib/log.js:305:5)
    at Module._compile (internal/modules/cjs/loader.js:654:30)

Upgrading node-forge to 1.x should have been a major change in selfsigned

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jfromaniellocommented, Jan 11, 2022

😫 my bad, ok I will publish a major version and a patch reverting the patch. Does that sounds good?

1reaction
jfromaniellocommented, Jan 11, 2022

ok, now I published:

  • selfsigned@2.0.0 (with engines node >=10) using node-forge@^1.2
  • selfsigned@1.10.14 which is the same than selfsigned@1.10.12
Read more comments on GitHub >

github_iconTop Results From Across the Web

ng build error for package node-forge during deployment
This error started coming today in our deployment servers but our local was working fine. Issues is with node-forge latest version v1.
Read more >
node-forge - npm
The Forge software is a fully native implementation of the TLS protocol in JavaScript, a set of cryptography utilities, and a set of...
Read more >
react-scripts --openssl-legacy-provider - You.com | The search ...
It is an error about react-scripts file missing in your node_modules/ directory at the time of installation. Check your react-script dependency is avaliable...
Read more >
Node.js: Uncaught ReferenceError: URLSearchParams is not ...
Node.js: Uncaught ReferenceError: URLSearchParams is not defined. 在低版本Node 中(如v8.5.x) 全局没有 URLSearchParams 类。
Read more >
Browse Javascript Technical Problem Clusters - Code Grepper
0. ajax error · javascript replace spaces with dashes · current year javascript copyright · referenceerror: __dirname is not defined · ts-node command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found