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
TypeError: details.family.toLowerCase is not a function
at /private/tmp/t/node_modules/.pnpm/[email protected]/node_modules/ip/lib/ip.js:386:39
at Array.filter ()
at /private/tmp/t/node_modules/.pnpm/[email protected]/node_modules/ip/lib/ip.js:384:37
at Array.map ()
at ip.address (/private/tmp/t/node_modules/.pnpm/[email protected]/node_modules/ip/lib/ip.js:379:37)
at Object. (/private/tmp/t/test.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
Follow up with upstream pr, pending issue resolution, ci support node18
The text was updated successfully, but these errors were encountered:
hufeng
changed the title
ip模块在node 18上报错,获取的family字段为数字,转换小写字母报错
ip node module in node 18, TypeError: details.family.toLowerCase is not a function
Apr 26, 2022
source code
node version
result
/private/tmp/t/node_modules/.pnpm/[email protected]/node_modules/ip/lib/ip.js:386
details.family = details.family.toLowerCase();
^
TypeError: details.family.toLowerCase is not a function
at /private/tmp/t/node_modules/.pnpm/[email protected]/node_modules/ip/lib/ip.js:386:39
at Array.filter ()
at /private/tmp/t/node_modules/.pnpm/[email protected]/node_modules/ip/lib/ip.js:384:37
at Array.map ()
at ip.address (/private/tmp/t/node_modules/.pnpm/[email protected]/node_modules/ip/lib/ip.js:379:37)
at Object. (/private/tmp/t/test.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
current status
Upstream already has a pr
indutny/node-ip#114
TODO
The text was updated successfully, but these errors were encountered: