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

Bug: Not async export on use server file #219

Open
CinquinAndy opened this issue May 31, 2024 · 2 comments
Open

Bug: Not async export on use server file #219

CinquinAndy opened this issue May 31, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@CinquinAndy
Copy link
Member

POST / 500 in 106ms
⨯ Error: A "use server" file can only export async functions, found object.
Read more: https://nextjs.org/docs/messages/invalid-use-server-value
at eval (./src/services/database.service.js:264:91)
at (action-browser)/./src/services/database.service.js (/home/andycinquin/ClonedRepo/ForVoyez/.next/server/app/page.js:704:1)
at Function.webpack_require (/home/andycinquin/ClonedRepo/ForVoyez/.next/server/webpack-runtime.js:33:43)
digest: "1999519948"
POST / 500 in 17ms
GET /?_rsc=r3yhw 200 in 19ms
✓ Compiled in 1217ms (1575 modules)
✓ Compiled in 614ms (1575 modules)
⨯ ./src/services/database.service.js

image

@CinquinAndy CinquinAndy added the bug Something isn't working label May 31, 2024
@CinquinAndy CinquinAndy added this to the mvp milestone May 31, 2024
@LightInn
Copy link
Contributor

LightInn commented Jun 1, 2024

ah ? j'ai fait une betise ? :c

@CinquinAndy
Copy link
Member Author

yes i think so'

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
Status: Todo
Development

No branches or pull requests

2 participants