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
I'd like to use the latest version of got-scraping (4.0.3) in my codebase in node 16.20.2, I had a problem when trying to install the new version, in the dependencies there is the "quick-lru" library with version 7.0.0 which requires node 18 or higher, I managed to bypass this by putting in my package.json :
"resolutions": {
"quick-lru": "5.1.1"
}
So I've managed to install the latest version of got-scraping but I'm faced with a new problem, when I try to use it it sends me back
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/root69/got-scraping-issue/node_modules/got-scraping/package.json
at new NodeError (node:internal/errors:387:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:365:9)
at packageExportsResolve (node:internal/modules/esm/resolve:589:7)
at resolveExports (node:internal/modules/cjs/loader:556:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:596:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1014:27)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/usr/local/lib/node_modules/ts-node/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:873:27)
at Module.require (node:internal/modules/cjs/loader:1100:19)
at require (node:internal/modules/cjs/helpers
I'd like to be able to fix this error as soon as possible, thank you.
Activity