Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package subpath './lib/request' is not defined by "exports" in node_modules/koa/package.json #1589

Closed
kookxiang opened this issue Sep 24, 2021 · 1 comment

Comments

@kookxiang
Copy link

kookxiang commented Sep 24, 2021

may related to acb08e0

from https://github.com/eggjs/egg-core/

Uncaught Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/request' is not defined by "exports" in /.../node_modules/egg-core/node_modules/koa/package.json
    at throwExportsNotFound (internal/modules/esm/resolve.js:285:9)
    at packageExportsResolve (internal/modules/esm/resolve.js:491:3)
    at resolveExports (internal/modules/cjs/loader.js:444:36)
    at Module._findPath (internal/modules/cjs/loader.js:484:31)
    at Module._resolveFilename (internal/modules/cjs/loader.js:818:27)
    at Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at (/code/node_modules/_egg-core@4.20.0@egg-core/lib/loader/mixin/extend.js:8:12)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
@Lxxyx
Copy link

Lxxyx commented Sep 24, 2021

Related: nodejs/node#34718
Solution: Upgrade Node.js version >= 12.20

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

No branches or pull requests

3 participants