Skip to content

warning: unexpected isContextPassToFunction error, you may continue development as usual but please report the following to the developer: #1173

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

Open
grasilife opened this issue Apr 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@grasilife
Copy link

What version of Elysia is running?

1.1.2

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

Image "build": "cross-env NODE_ENV=production bun build --compile --minify --target bun --outfile server ./src/index.ts",

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

@grasilife grasilife added the bug Something isn't working label Apr 24, 2025
@grasilife
Copy link
Author

[Sucrose] warning: unexpected isContextPassToFunction error, you may continue development as usual but please report the following to the developer:
--- body ---
{{cookie:{token:A},jwt:F,headers:D})=>{let w=D.authorization;if(!w)return{userInfo:null};let[B,q]=await ND(IA.post("https://ones.huyooo.com/restfulApi/users/profile",{},{headers:{accept:"application/json",authorization:`${w}`}}));if(console.log(B,"userInfoError"),B)return{userInfo:null};let z=q.data.data;if(!z)return{userInfo:null};return{userInfo:{userId:z.id,...z}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant