alchemyplatform / alchemyplatform/aa-sdk
Failed to resolve entry for package "@alchemy/aa-signers" on React + Vite
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 321
- Forks
- 231
- Avg merge
- 43m
- Merged PRs (30d)
- 3
Description
[REQUIRED] Environment
- Browser version: Chrome 120
- AA SDK version: 1.2.1
- Package: aa-signers
[REQUIRED] Describe the problem
Hello everyone, I'm following the integration instructions for web3auth.
Trying to import @alchemy/aa-signers/web3auth does not work as it can't find the directory
Failed to resolve import "@alchemy/aa-signers/web3auth" from "src/App.tsx". Does the file exist?
When I import Web3AuthSigner from @alchemy/aa-signers I get the following error:
[vite] Internal server error: Failed to resolve entry for package "@alchemy/aa-signers". The package may have incorrect main/module/exports specified in its package.json: Missing "." specifier in "@alchemy/aa-signers" package
Plugin: vite:import-analysis
I tried using the package on the main project (has some custom configs) and also on a clean vite project, the error is the same for both.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in the clean Vite project and inspect the import from src/App.tsx together with the @alchemy/aa-signers package entry points and package.json exports. Done means the documented Web3Auth import and the package-root import resolve successfully in the reported React and Vite setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript, vite
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100