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

[BUG]: After upgrading from 4.1.1 to 4.1.2, only the dist-node folder exists in the package. #409

Closed
1 task done
HaJunRyu opened this issue Feb 27, 2023 · 1 comment
Closed
1 task done
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@HaJunRyu
Copy link

HaJunRyu commented Feb 27, 2023

What happened?

If you look at the 4.1.1 version of the package, you can see dist-node, dist-src, dist-types, and dist-web.
However, only dist-node can be seen in 4.2.2 version.
However, package.json references it in the same way as v4.1.1

  "source": "dist-src/index.js",
  "types": "dist-types/index.d.ts",
  "main": "dist-node/index.js",
  "module": "dist-web/index.js",
  • 4.1.1
    image

  • 4.1.2
    image

I am trying to refer to the @octokit/plugin-retry in the mjs environment and an error occurs because the package corresponding to the modules does not exist. Please let me know the reason.

Versions

@octokit/plugin-retry: v4.1.2
node.js: v16.19.0
OS: MacOS 13.2

Relevant log output

@parcel/resolver-default: Could not load './dist-web/index.js' from module '@octokit/plugin-retry' found in 
package.json#module

  /Users/hajunryu/Documents/dev/test/node_modules/@octokit/plugin-retry/package.json:13:13
    12 |   "main": "dist-node/index.js",
  > 13 |   "module": "dist-web/index.js",
  >    |             ^^^^^^^^^^^^^^^^^^^ './dist-web/index.js' does not exist, did you mean './dist-node/index.js'?'
    14 |   "pika": true,
    15 |   "sideEffects": false,

Code of Conduct

  • I agree to follow this project's Code of Conduct
@HaJunRyu HaJunRyu added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Feb 27, 2023
@kfcampbell
Copy link
Member

This appears to be a duplicate of #405; let's continue the conversation over there!

@kfcampbell kfcampbell closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2023
@github-project-automation github-project-automation bot moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Active Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Archived in project
Development

No branches or pull requests

2 participants