v1.3.0 is a breaking change via node-forge upgrade in node < 10: "ReferenceError: URLSearchParams is not defined"
See original GitHub issueIf 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:
- Created 2 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
😫 my bad, ok I will publish a major version and a patch reverting the patch. Does that sounds good?
ok, now I published:
selfsigned@2.0.0
(with engines node >=10) usingnode-forge@^1.2
selfsigned@1.10.14
which is the same thanselfsigned@1.10.12