Skip to content

Issue on last version of got-scraping #123

Closed

Description

@xyeuu

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.

here is a repo with an example of my problem : https://github.com/xyeuu/got-scraping-issue

Activity

  1. locked and limited conversation to collaborators on Dec 15, 2023
  2. converted this issue into a discussion #124 on Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions