nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 180 forks source link

SolitoImage type error if not entering all of the properties #319

Closed chen-rn closed 1 year ago

chen-rn commented 1 year ago

Error Screenshot 2023-01-27 at 3 16 47 PM

No error Screenshot 2023-01-27 at 3 20 31 PM

Any idea what this could be caused by?

nandorojo commented 1 year ago

are you on the latest version?

chen-rn commented 1 year ago
"solito": "^2.1.3"

I think so?

nandorojo commented 1 year ago

that’s weird. which next version?

chen-rn commented 1 year ago
"next": "^13.1.1"
nandorojo commented 1 year ago

what if you pass image as number

chen-rn commented 1 year ago

Screenshot 2023-01-27 at 3 46 36 PM doesn't seem to fix it

nandorojo commented 1 year ago
Screenshot 2023-01-27 at 6 44 23 PM

Weird, this works for me.

What does yarn why solito give you

chen-rn commented 1 year ago

Screenshot 2023-01-27 at 3 49 00 PM

chen-rn commented 1 year ago

Hmmm, could be some thing to do with my set up. I'll just declare all the props for now and look into it later!

nandorojo commented 1 year ago

weird. hope it gets fixed.

chen-rn commented 1 year ago

ill leave a comment if i do end up figuring it out!