You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to run it locally using devtools, but I always get this error:
Error: Invalid value for props `lang`: "unknown". The value must be one of the following: ja-JP, ko-KR, zh-CN, zh-TW, zh-HK, th-TH, bn-IN, ar-AR, ta-IN, ml-IN, he-IL, te-IN, devanagari, kannada, emoji, symbol, math.
app.image("/review-image/:toFid",async(c)=>{const{ toFid }=c.req.param();constuser=awaitfetchUserData(toFid);constpfpUrl=user.pfp_url;constparsedName=parseFullName(user.display_name);constdisplayName=parsedName.first||user.display_name;constusername=user.username;constbio=user.profile.bio.text;constfollowers=user.follower_count;returnc.res({headers: {"cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0, s-maxage=0",},image: (<BoxgrowbackgroundColor="bg"flexDirection="column"gap="8"paddingTop="48"paddingLeft="28"paddingRight="28"textAlign="left"height="100%"width="100%"><BoxbackgroundColor="bg"flex="1"><BoxgrowbackgroundColor="bg"flex="1"flexDirection="row"alignItems="center"width="100%"overflow="hidden"position="relative">{/* Image */}<imgwidth="256"height="256"src={pfpUrl}style={{border: "2px solid #DDDDDD",borderRadius: "20px",objectFit: "cover",maxWidth: "100%",maxHeight: "100%",display: "block",}}/><Spacersize="24"/>{/* Text Container */}<Boxdisplay="flex"flexDirection="column"alignItems="flex-start"flex="1"><Textalign="left"weight="500"color="grey"size="24">
@{username}</Text><Spacersize="6"/><Textalign="left"weight="400"color="black"size="24">{truncate(bio,50)+(Buffer.byteLength(bio,'utf8')>50 ? '...' : '')}</Text><Spacersize="10"/><Boxdisplay="flex"flexDirection="row"alignItems="center"><Textalign="left"weight="500"color="black"size="24">{formatNumber(followers)}</Text><Spacersize="6"/><Textalign="left"color="grey"size="24">
Followers
</Text></Box></Box></Box></Box><Spacersize="60"/><BoxbackgroundColor="bg"flex="1"><BoxbackgroundColor="bg"display="flex"flexDirection="column"><textlang="en"style={{border: "none",color: "black",fontSize: "80px",fontWeight: "500",width: "100%",resize: "none",outline: "none",lineHeight: "0.9"}}>
Pay {displayName} // the error because of this but this error will only show if I fetch user `woj.eth`
</text><Spacersize="10"/><textstyle={{border: "none",color: "grey",fontSize: "52px",fontWeight: "400",width: "100%",resize: "none",outline: "none",}}>
Pay with any token and they will receive ETH on Base.
</text></Box></Box><BoxbackgroundColor="bg"flex="1"><BoxborderRadius="14"padding="14"background="blue"height="128"width="100%"justifyContent="center"><BoxflexDirection="row"alignItems="center"display="flex"><boxstyle={{transform: "rotate(-68.01deg)"}}><Iconname="undo"color="white"size="60"/></box><Spacersize="10"/><textstyle={{border: "none",color: "white",fontSize: "42px",fontWeight: "500",width: "100%",resize: "none",outline: "none",}}>
Enter the amount and token you want to send
</text></Box></Box></Box></Box>),});});
On the displayName text code error will show.
Frog Version
frog@v0.17.1
TypeScript Version
"typescript": "^5.5.3"
Check existing issues
I checked there isn't already an issue for the bug I encountered.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
However, it is really not minimal. I see that I have to pass some environment variables to make it work.
Can you cut it out to a really minimal reproducible example?
Minimal reproductions are required as they save us a lot of time reproducing your config & environment, and trying to reproduce your issue. See Why reproductions are required.
Please reopen this issue when a reproduction is added.
Describe the bug
I try to run it locally using devtools, but I always get this error:
This error only shows if I fetch the user (woj.eth) - https://warpcast.com/woj.eth on the
display_name
.Link to Minimal Reproducible Example
https://github.com/Mr94t3z/paywithglide/blob/8386eeaae6caa478fa742bacd8d6d2d5184361e6/api/index.tsx#L270
Steps To Reproduce
Here's the full code on
app.image
route:On the
displayName
text code error will show.Frog Version
frog@v0.17.1
TypeScript Version
"typescript": "^5.5.3"
Check existing issues
Anything else?
No response
The text was updated successfully, but these errors were encountered: