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

fix uuid commonjs import problem #111

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

yashha
Copy link
Contributor

@yashha yashha commented Oct 10, 2020

I had a problem when using percollate with ts-node commonjs imports.
It said:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './v1' is not defined by "exports" in /home/yasar/Workspace/js/percollate-api/node_modules/uuid/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:450:36)
    at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:27)
    at Function.Module._load (internal/modules/cjs/loader.js:743:27)
    at Module.require (internal/modules/cjs/loader.js:965:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/yasar/Workspace/js/percollate-api/node_modules/percollate/src/remote-resources.js:2:14)
    at Module._compile (internal/modules/cjs/loader.js:1076:30)

@danburzo danburzo merged commit d208a6b into danburzo:master Oct 13, 2020
@danburzo
Copy link
Owner

LGTM, thank you!

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

Successfully merging this pull request may close these issues.

None yet

2 participants