[email protected] published package might be missing files
Hi. First, thank you for this package!
I seem to be getting a strange error in version 5.0.0 that I'm not getting when I downgrade to 4.2.0. Essentially:
Version 5.0.0:
Welcome to Node.js v18.13.0. Type ".help" for more information. > require('./node_modules/unfetch/dist/unfetch.js') [Function (anonymous)] > require('unfetch') Uncaught: Error: Cannot find module '/repos/.ergodark/xunn.at/node_modules/unfetch/index.js' at createEsmNotFoundErr (node:internal/modules/cjs/loader:1060:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1053:15) at resolveExports (node:internal/modules/cjs/loader:538:14) at Module._findPath (node:internal/modules/cjs/loader:607:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1025:27) at Module._load (node:internal/modules/cjs/loader:885:27) at Module.require (node:internal/modules/cjs/loader:1105:19) at require (node:internal/modules/cjs/helpers:103:18) { code: 'MODULE_NOT_FOUND', path: '/repos/.ergodark/xunn.at/node_modules/unfetch/package.json' }
Version 4.2.0:
Welcome to Node.js v18.13.0. Type ".help" for more information. > require('./node_modules/unfetch/dist/unfetch.js') [Function (anonymous)] > require('unfetch') [Function (anonymous)]
@developit any updates on this? PR is awaiting review: https://github.com/developit/unfetch/pull/164
Have same error. Import like this:
const fetch = require('unfetch');
Node v14.17.6
package.json:
"dependencies": {
"express": "^4.18.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"unfetch": "^5.0.0"
}
Error: Cannot find module '\node_modules\unfetch\index.js'