Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tree-adapters/default' is not defined by "exports" #10

Open
luiscastro193 opened this issue Sep 10, 2022 · 1 comment

Comments

@luiscastro193
Copy link

I get the following error when trying to import the module:

node:internal/errors:484
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tree-adapters/default' is not defined by "exports" in /home/luis/app/node_modules/parse5/package.json
    at new NodeError (node:internal/errors:393:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:340:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:619:3)
    at resolveExports (node:internal/modules/cjs/loader:492:36)
    at Module._findPath (node:internal/modules/cjs/loader:532:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:941:27)
    at Module._load (node:internal/modules/cjs/loader:803:27)
    at Module.require (node:internal/modules/cjs/loader:1021:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/luis/app/node_modules/css-select-parse5-adapter/lib/css-select-parse5-adapter.js:16:28) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v18.8.0

It seems like something changed in parse5 and now this package doesn't work.

@kj455
Copy link

kj455 commented Sep 21, 2022

@luiscastro193
If you want it to work somehow, I dropped the parse5 version to 6.0.1 and it worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants