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
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/data/com.termux/files/home/node_modules/chalk/source/index.js from /data/data/com.termux/files/home/TalkerNode/TalkerNode.js not supported.
Instead change the require of index.js in /data/data/com.termux/files/home/TalkerNode/TalkerNode.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/data/data/com.termux/files/home/TalkerNode/TalkerNode.js:7:13) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v17.4.0
~/TalkerNode $
The text was updated successfully, but these errors were encountered:
According to https://github.com/chalk/chalk/releases/tag/v5.0.0 there are breaking changes, and until TalkerNode adjusts to them (including depending on node >= 12.20), the solution is to specifically depend on chalk 4.
chalk 5 is not retrocompatible (see #137).
For now we are depending on chalk <=4 to fix that, and
Nodiverse >= 0.4.1 (which also depends on chalk <= 4).
In the future we might try to support more recent versions of chalk
too, but that will mean bumping node's dependency to
`"node": "^12.20.0 || ^14.13.1 || >=16.0.0"`, and as we can see in
issue #126 we're still not ready to stop supporting node 10.
~/TalkerNode $ PORT=3333 node TalkerNode.js
/data/data/com.termux/files/home/TalkerNode/TalkerNode.js:7
var chalk = require('chalk');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/data/com.termux/files/home/node_modules/chalk/source/index.js from /data/data/com.termux/files/home/TalkerNode/TalkerNode.js not supported.
Instead change the require of index.js in /data/data/com.termux/files/home/TalkerNode/TalkerNode.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/data/data/com.termux/files/home/TalkerNode/TalkerNode.js:7:13) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v17.4.0
~/TalkerNode $
The text was updated successfully, but these errors were encountered: