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

react-cookie types export for require is incorrect #477

Closed
josephearl opened this issue Mar 31, 2024 · 1 comment · May be fixed by ricardomb94/carshop#32 or xan187/blurts-server#10
Closed

react-cookie types export for require is incorrect #477

josephearl opened this issue Mar 31, 2024 · 1 comment · May be fixed by ricardomb94/carshop#32 or xan187/blurts-server#10

Comments

@josephearl
Copy link

josephearl commented Mar 31, 2024

The exports in the package.json for require point to a types file that does not exist:

"exports": {
    ".": {
      "import": {
        "types": "./esm/index.d.mts",
        "default": "./esm/index.mjs"
      },
      "require": {
        "types": "./cjs/index.d.mts",
        "default": "./cjs/index.js"
      },
      "default": "./cjs/index.js"
    }
  },

./cjs/index.d.mts does not exist - for require it should be /cjs/index.d.ts

Screenshot 2024-03-31 at 20 39 32
@josephearl josephearl changed the title Types export for require is incorrect react-cookie types export for require is incorrect Mar 31, 2024
josephearl added a commit to josephearl/cookies that referenced this issue Mar 31, 2024
@eXon
Copy link
Collaborator

eXon commented Apr 1, 2024

While fixing ESM I broke CJS, it's fixed in 7.1.3

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants