bsluther
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
I was on node 18 and switched to 22. Now it runs fine on 18 again so, that's why I think maybe it was the change not the version itself
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Changing node version too? I'm still at a loss of why that mattered. But that was the last thing I did and it started working after. I wonder if it just forced my yarn cache to rebuild
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Dang, ok, sorry
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
The only other things I might suggest is clearing your
pnpm
cache, metro
cache, deleting node_modules
and anything else you can think of50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
I know, every other week I think about capacitor. Don't know if its actually any better
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
The pnpm/monorepo setup seems like it can throw a wrench in with react native, I wonder if it's related.
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Ah ok, dang. Are you using pnpm?
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Had to specify es6 for the babel plugin,
["babel-plugin-transform-import-meta", { "module": "ES6" }]
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Did you try the other things I mentioned on the issue? That's all I know to suggest really.
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Many thanks to mark-lendit for figuring that out 👏
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
@ssalbdivad Just wanted to mention that I got it working thanks to the change mentioned in this issue: https://github.com/arktypeio/arktype/issues/1027#issuecomment-2656650793. I posted a reply there with the steps that got it working for me if anyone else runs into this.
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Yea, I certainly hope so
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
I tried yarn and that didn't help
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Seems weird, but who knows. Hoping maybe someone else out there has used
arktype
with react native and could share some insight50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Interesting, I changed from node 18 to node 22 and I get a new error now,
intersection.equals is not a function (it is undefined)
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
I wonder if this has to do with using
pnpm
, I know there are some issues with monorepos and react native. I might try switching to yarn and seeing if the problem persists.50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
So using
babel-plugin-transform-import-meta
had no effect, same error.50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
Yea it seems crazy, every time I have problems like this with react native I wonder why it's a problem.. I'm going to try stepping through the whole process again, I will post here for posterity.
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
I just installed so I assume so,
"^2.0.4"
50 replies
Aarktype
•Created by bsluther on 2/4/2025 in #questions
Has anyone been able to get `arktype` working in React Native/Expo?
I'm just importing
type
, eg import { type } from 'arktype'
so it's happening under the hood somewhere50 replies