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

Module not found: Error resolving 'near-api-js/lib/providers/index' in @near-wallet-selector/core #1207

Open
HoussineAgha opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working Emerging Tech Emerging Tech flying formation at Pagoda

Comments

@HoussineAgha
Copy link

Issue Description:

I'm encountering an error when using the @near-wallet-selector/core package and near-api-js in my React project. The error message indicates that the module cannot resolve the path near-api-js/lib/providers/index in the @near-wallet-selector/core package.

Error Message:
ERROR in ./node_modules/@near-wallet-selector/core/index.js 3:0-66
Module not found: Error: Can't resolve 'near-api-js/lib/providers/index' in 'C:\Users\Altabba\Desktop\gamfi-react\node_modules@near-wallet-selector\core'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'near-api-js/lib/providers/index' 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.

Additional Information:

  • @near-wallet-selector/core version: "^8.9.13"
  • near-api-js version: "^5.0.0"
  • Node.js version: "20.17.0"
  • Yarn version: "1.22.22"
@HoussineAgha HoussineAgha added bug Something isn't working Emerging Tech Emerging Tech flying formation at Pagoda labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Emerging Tech Emerging Tech flying formation at Pagoda
Projects
Status: NEW❗
Development

No branches or pull requests

1 participant