You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I just wanted to test cspell on a markdown file but i got this report.
$ cspell --locale=sv your_test_file.md
(node:294824) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
CSpell: Files checked: 0, Issues found: 0 in 0 files
I tested the node trace option like below:
$ node --trace-deprecation /usr/bin/cspell --locale=en your_test_file.md
(node:297520) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:397:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:333:10)
at loadBuiltinModule (node:internal/modules/helpers:101:7)
at Module._load (node:internal/modules/cjs/loader:1001:17)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/usr/lib/node_modules/cspell/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
CSpell: Files checked: 0, Issues found: 0 in 0 files
Is that some thing known or did I do something wrong?
Best regards.
/Magnus Sörensen
Then in node_modules go to the directory tr46 > index.js
// Replace this:constpunycode=require('punycode');// With this:constpunycode=require('punycode/');
Jason3S
changed the title
[Bug]: DeprecationWarning: punycode module is deprecated.
Q: How to fix: DeprecationWarning: punycode module is deprecated.
Dec 12, 2023
Jason3S
changed the title
Q: How to fix: DeprecationWarning: punycode module is deprecated.
Q: How to fix: `DeprecationWarning: punycode module is deprecated.`
Dec 12, 2023
Jason3S
changed the title
Q: How to fix: `DeprecationWarning: punycode module is deprecated.`
Q: How to fix: "DeprecationWarning: punycode module is deprecated."
Dec 12, 2023
Kind of Issue
Runtime - command-line tools
Tool or Library
cspell
Version
6.31.1
Supporting Library
Not sure
OS
Linux
OS Version
Archlinux
Description
Hi.
I just wanted to test cspell on a markdown file but i got this report.
I tested the node trace option like below:
Is that some thing known or did I do something wrong?
Best regards.
/Magnus Sörensen
Steps to Reproduce
Expected Behavior
Expected to get a warning of a spelling error or something like that.
Additional Information
No response
cspell.json
No response
cspell.config.yaml
No response
Example Repository
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: