beaugunderson / ip-address

💻 a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript
http://ip-address.js.org/
MIT License
582 stars 73 forks source link

Issue with the new version: 9.0.0 #166

Closed sefinek closed 1 year ago

sefinek commented 1 year ago

Is it normal?

Error: Cannot find module 'C:\GitHub\npm\geoip-lite2\node_modules\ip-address\dist\ip-address.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (node:internal/modules/cjs/loader:438:19)
    at Module._findPath (node:internal/modules/cjs/loader:680:18)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (C:\GitHub\npm\geoip-lite2\utils-unminified\updatedb.js:24:32)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32) {
  code: 'MODULE_NOT_FOUND',
  path: 'C:\\GitHub\\npm\\geoip-lite2\\node_modules\\ip-address\\package.json',
  requestPath: 'ip-address'
}

Node.js v18.18.0
thib3113 commented 1 year ago

the project seems published without being builded ... https://www.npmjs.com/package/ip-address?activeTab=code .

Only the source are included

beaugunderson commented 1 year ago

apologies, fix coming momentarily

beaugunderson commented 1 year ago

fixed in 9.0.5, issue was with incremental: true in tsconfig.json... tsc was not rebuilding the dist files during the build stage 🙃

sefinek commented 1 year ago

Thanks