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
Following the steps from the section "Running from source" calling npm start aborts with an error:
> [email protected] start
> node src/server.js
/Users/user/projects/translation-server/node_modules/config/lib/config.js:1217
} else if (Utils.isRegExp(parent)) {
^
TypeError: Utils.isRegExp is not a function
at _clone (/Users/user/projects/translation-server/node_modules/config/lib/config.js:1217:22)
at Config.cloneDeep (/Users/user/projects/translation-server/node_modules/config/lib/config.js:1255:10)
at /Users/user/projects/translation-server/node_modules/config/lib/config.js:1515:32
at Array.forEach (<anonymous>)
at util.extendDeep (/Users/user/projects/translation-server/node_modules/config/lib/config.js:1492:9)
at /Users/user/projects/translation-server/node_modules/config/lib/config.js:727:14
at Array.forEach (<anonymous>)
at /Users/user/projects/translation-server/node_modules/config/lib/config.js:721:14
at Array.forEach (<anonymous>)
at util.loadFileConfigs (/Users/user/projects/translation-server/node_modules/config/lib/config.js:720:13)
If I manually edit the offending node_modules/config/lib/config.js thus:
From
if (Utils.isArray(parent)) {
child = [];
} else if (Utils.isRegExp(parent)) {
child = new RegExp(parent.source, util.getRegExpFlags(parent));
if (parent.lastIndex) child.lastIndex = parent.lastIndex;
} else if (Utils.isDate(parent)) {
To
if (Utils.types.isArray(parent)) {
[...]
} else if (Utils.types.isDate(parent)) {
Everything seems to work fine. I think this is probably a bug in config or something, but I'm not very knowledgeable about how to work with npm packages. Could updating the version of config required fix the problem?
uname -v: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031
npm -v: 10.9.0
node -v v23.1.0
The text was updated successfully, but these errors were encountered:
Following the steps from the section "Running from source" calling
npm start
aborts with an error:If I manually edit the offending
node_modules/config/lib/config.js
thus:From
To
Everything seems to work fine. I think this is probably a bug in config or something, but I'm not very knowledgeable about how to work with npm packages. Could updating the version of config required fix the problem?
uname -v:
Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031
npm -v:
10.9.0
node -v
v23.1.0
The text was updated successfully, but these errors were encountered: