theKashey / react-focus-lock

It is a trap! A lock for a Focus. 🔓
MIT License
1.28k stars 67 forks source link

Version `2.11.0` doesn't compile with TS #288

Closed SferaDev closed 7 months ago

SferaDev commented 7 months ago

Error:

[ERROR] No matching export in "../../node_modules/.pnpm/focus-lock@1.2.0/node_modules/focus-lock/dist/es2015/index.js" for …
│     ../../node_modules/.pnpm/react-focus-lock@2.11.0_@types+react@18.2.56_react@18.2.0/node_modules/react-focus-lock/dist/es2…
│       4 │ ...ment, focusPrevElement, focusFirstElement, focusLastElement, cap...

Workaround:

  "pnpm": {
    "overrides": {
      "focus-lock": "1.3.2"
    }
  },
theKashey commented 7 months ago

Corrected in v2.11.1

PS: workaround - remove information about focus-lock and let it be auto-bumped to the latest one. Forced resolutions are never the asnwer.