-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
What happened?
When trying to compile my github action with ncc, an error stated that this plugin (and two others) are missing the "default" export inside package.json -> exports['.']. I believe this is because the scripts/build.mjs has not gotten the latest changes from octokit/core as shown here: https://github.com/octokit/core.js/blob/main/scripts/build.mjs#L63
Versions
- Node v21.4.0
- Typescript 5.4.5 (also tried 4.7.4)
- @vercel/ncc v0.38.1
- @octokit/plugin-paginate-graphql v5.2.0
- @octokit/plugin-retry v7.1.0
- @octokit/plugin-throttling v9.2.0
Relevant log output
> ncc build ./src/action.ts -o dist -d
ncc: Version 0.38.1
ncc: Compiling file index.js into CJS
ncc: Using [email protected] (local user-provided)
Error: Module not found: Error: Package path . is not exported from package /Users/kyle/git/actions/octokit_project/node_modules/@octokit/plugin-paginate-graphql (see exports field in /Users/kyle/git/actions/octokit_project/node_modules/@octokit/plugin-paginate-graphql/package.json)
Did you mean './@octokit/plugin-paginate-graphql'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
Module not found: Error: Package path . is not exported from package /Users/kyle/git/actions/octokit_project/node_modules/@octokit/plugin-throttling (see exports field in /Users/kyle/git/actions/octokit_project/node_modules/@octokit/plugin-throttling/package.json)
Did you mean './@octokit/plugin-throttling'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
Module not found: Error: Package path . is not exported from package /Users/kyle/git/actions/octokit_project/node_modules/@octokit/plugin-retry (see exports field in /Users/kyle/git/actions/octokit_project/node_modules/@octokit/plugin-retry/package.json)
Did you mean './@octokit/plugin-retry'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
at /Users/kyle/git/actions/octokit_project/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:38:1896272
at /Users/kyle/git/actions/octokit_project/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:38:396262
at _done (eval at create (/Users/kyle/git/actions/octokit_project/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:21:75523), <anonymous>:9:1)
at eval (eval at create (/Users/kyle/git/actions/octokit_project/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:21:75523), <anonymous>:34:22)Related Bugs
octokit/plugin-throttling.js#694
octokit/plugin-paginate-graphql.js#194
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done