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

Error when requiring package.json of module "tslib" #42

Open
jbghoul opened this issue Mar 27, 2024 · 0 comments
Open

Error when requiring package.json of module "tslib" #42

jbghoul opened this issue Mar 27, 2024 · 0 comments

Comments

@jbghoul
Copy link

jbghoul commented Mar 27, 2024

bl = require("browserify-licenses")
await bl({ modules: ["tslib"]})
 Package subpath './package.json' is not defined by "exports" in /home/jbghoul/dev/kazaplan/node_modules/tslib/package.json
error during build:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /home/jbghoul/dev/kazaplan/node_modules/tslib/package.json
    at new NodeError (node:internal/errors:405:5)
    at exportsNotFound (node:internal/modules/esm/resolve:359:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:695:9)
    at resolveExports (node:internal/modules/cjs/loader:567:36)
    at Module._findPath (node:internal/modules/cjs/loader:636:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at _getDep (/home/jbghoul/dev/kazaplan/node_modules/browserify-licenses/app/sources/modules.js:19:25)
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

1 participant