Skip to content
New issue

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

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

Already on GitHub? # to your account

cjs export broken #241

Closed
mcollina opened this issue Mar 18, 2024 · 2 comments · Fixed by #242
Closed

cjs export broken #241

mcollina opened this issue Mar 18, 2024 · 2 comments · Fixed by #242
Labels
bug Something isn't working

Comments

@mcollina
Copy link

Error: Package subpath './dist/error' is not defined by "exports" in /home/runner/work/mercurius/mercurius/node_modules/graphql-jit/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:303:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:650:9)
    at resolveExports (node:internal/modules/cjs/loader:591:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:668:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
    at Function.Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/home/runner/work/mercurius/mercurius/test/cache.js:7:[26](https://github.com/mercurius-js/mercurius/actions/runs/8331381446/job/22798162065?pr=1089#step:5:27))
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module.replacementCompile (/home/runner/work/mercurius/mercurius/node_modules/append-transform/index.js:60:13)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Object.<anonymous> (/home/runner/work/mercurius/mercurius/node_modules/append-transform/index.js:64:4)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:[28](https://github.com/mercurius-js/mercurius/actions/runs/8331381446/job/22798162065?pr=1089#step:5:29):49
@boopathi boopathi added the bug Something isn't working label Mar 20, 2024
@boopathi
Copy link
Member

Must be the effort to support both esm and cjs -

eac7fe3#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R13-R16

@boopathi
Copy link
Member

Should be fixed in v0.8.6. Please create a new issue or comment to reopen if the problem still persists.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants