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

Package doesn't work #70

Closed
catamphetamine opened this issue Apr 21, 2024 · 1 comment
Closed

Package doesn't work #70

catamphetamine opened this issue Apr 21, 2024 · 1 comment

Comments

@catamphetamine
Copy link

catamphetamine commented Apr 21, 2024

On the NPM website it says that the package is deprecated:

image

In the console:

ERROR in ./node_modules/react-focus-lock/dist/es2015/index.js 1:0-38
Module not found: Error: Can't resolve './Combination' in 'C:\dev\anychan\node_modules\react-focus-lock\dist\es2015'
Did you mean 'Combination.js'?
BREAKING CHANGE: The request './Combination' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve './Combination' in 'C:\dev\anychan\node_modules\react-focus-lock\dist\es2015'
  using description file: C:\dev\anychan\node_modules\react-focus-lock\package.json (relative path: ./dist/es2015)
    Field 'browser' doesn't contain a valid alias configuration
    using description file: C:\dev\anychan\node_modules\react-focus-lock\package.json (relative path: ./dist/es2015/Combination)
      Field 'browser' doesn't contain a valid alias configuration
      C:\dev\anychan\node_modules\react-focus-lock\dist\es2015\Combination doesn't exist
 @ ./node_modules/social-components-react/components/Slideshow.js 6:0-41 347:30-39
 @ ./src/components/Slideshow.js 8:0-72 33:30-39
 @ ./src/pages/Application.js 18:0-51 215:35-44
 @ ./src/routes.js 4:0-49 17:19-30
 @ ./src/react-pages.js 4:0-33 15:8-14
 @ ./src/render.js 6:0-51 14:45-64
 @ ./src/index.js 35:0-36 56:10-19

Workaround:

yarn add react-focus-lock@^2.11.0
@theKashey
Copy link
Owner

Duplicate of theKashey/react-focus-lock#301
(and that is a different repository)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants