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

Unable to resolve "abitype/zod" in Expo React Native #213

Closed
2 tasks done
ManuLpz4 opened this issue Nov 27, 2023 · 3 comments
Closed
2 tasks done

Unable to resolve "abitype/zod" in Expo React Native #213

ManuLpz4 opened this issue Nov 27, 2023 · 3 comments
Labels
needs reproduction Needs a minimal reproducible example before further investigation

Comments

@ManuLpz4
Copy link

Describe the bug

Hi guys! How is it going? Hope you are doing well :)

I'm trying to use the SDK in my React Native project but I'm facing the following issue when trying to run the app. I'm using Expo and it's a development build.

iOS Bundling failed 3099ms
Unable to resolve "abitype/zod" from "node_modules/@alchemy/aa-core/dist/cjs/account/schema.js"
[MyApp] Unable to resolve module abitype/zod from
/Users/manu/Documents/MyApp/app/node_modules/@alchemy/aa-core/dist/cjs/account/schema.js:
abitype/zod could not be found within the project or in these directories:
node_modules/@alchemy/aa-core/node_modules
node_modules

\^[[0m \^[[90m  5 |\^[[39m \^[[33mObject\^[[39m\^[[33m.\^[[39mdefineProperty(exports\^[[33m,\^[[39m
\^[[32m"__esModule"\^[[39m\^[[33m,\^[[39m { value\^[[33m:\^[[39m \^[[36mtrue\^[[39m
})\^[[33m;\^[[39m\^[[0m
\^[[0m \^[[90m  6 |\^[[39m exports\^[[33m.\^[[39m\^[[33mSimpleSmartAccountParamsSchema\^[[39m
\^[[33m=\^[[39m exports\^[[33m.\^[[39mcreateBaseSmartAccountParamsSchema \^[[33m=\^[[39m
\^[[36mvoid\^[[39m \^[[35m0\^[[39m\^[[33m;\^[[39m\^[[0m
\^[[0m\^[[31m\^[[1m>\^[[22m\^[[39m\^[[90m  7 |\^[[39m \^[[36mconst\^[[39m zod_1 \^[[33m=\^[[39m
require(\^[[32m"abitype/zod"\^[[39m)\^[[33m;\^[[39m\^[[0m
\^[[0m \^[[90m    |\^[[39m                        \^[[31m\^[[1m^\^[[22m\^[[39m\^[[0m
\^[[0m \^[[90m  8 |\^[[39m \^[[36mconst\^[[39m viem_1 <…>

Do you have some idea of the origin of the issue? Please and thank you

Related issue in Alchemy SDK: alchemyplatform/aa-sdk#282

Link to Minimal Reproducible Example

No response

Steps To Reproduce

No response

Package Version

0.8.11

TypeScript Version

5.2.2

Anything else?

No response

Validations

@Raiden1411
Copy link
Collaborator

Seems like the alchemy sdk is not exposing the zod api. You might need to install abitype seperatly or hope that they expose that in their sdk.

@tmm tmm added the needs reproduction Needs a minimal reproducible example before further investigation label Nov 27, 2023
Copy link
Contributor

Hello @ManuLpz4. Please provide a minimal reproduction using a TypeScript Playground or GitHub repository. Issues marked with "needs reproduction" will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
Copy link
Contributor

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest ABIType version. If you have any other comments you can create a new discussion.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs reproduction Needs a minimal reproducible example before further investigation
Projects
None yet
Development

No branches or pull requests

3 participants