Skip to content

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

@HaJunRyu

Description

@HaJunRyu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions