Replies: 1 comment
-
Move the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a fairly basic demo i'm trying to put together that uses D1 and Drizzle. I'm not quite sure instantiating my d1 database correctly. Here is what I'm trying to do:
When creating a todo I keep getting this error when submitting a new
todo
:I can make this error go away by moving these lines outside of the component definition
like so:
This works and my app works locally, however my project no longer builds... And I get this error in my CI:
Very confused what I'm doing wrong...
fully reproducible repo : https://github.com/chiubaca/fullstack-next-cloudflare
demo application here using first example : https://fullstack-next-cloudflare.pages.dev/
Beta Was this translation helpful? Give feedback.
All reactions