Following get started tuto - getTasks list not generated
I am following this article here
https://wasp-lang.dev/docs/tutorials/todo-app/03-listing-tasks
To use the prepared logic on frontend, article says I need to import my fetching function and
useQuery
hook like so
but for me getTasks
is not importing, because there is no such file is generated.
Why could this be and what am I doing wrong? What can I provide to help you debug this?Listing tasks | Wasp
We want to admire our tasks, so let's list them!
19 Replies
my main.wasp file
My
src/server/queries.ts
file
Hi there @IamIconLiving π π are you doing these updates while running
wasp start
by chance? the Wasp compiler will be in watch mode then and re-compile your app as files change. this is required to create files (like your query files) as your .wasp file changes. you can also run wasp compile
as a one off to try. let me know if that doesn't do the trick
you should also see your query files here when generated by Wasp: <your-project-dir>/.wasp/out/web-app/src/queries
βοΈ for debugging sake only, you just need to only edit files in your actual project dir, not the generated .wasp
output folder πyep I found the folder output, but it doesn't contain the file that I am trying to require
restarted the dev server (or whatever it's called under the hood of
wasp start
) to no luck
wasp compile
doesn't help eitherhm that is very odd.
If you want we can jump on a call real quick
sure
send me a dm
@shayne
wasp clean
did the trickhmm, interesting! good find Vinny. we should probably understand and try to replicate what happened internally
it seemed when he tried to import react 18 as a depenency it caused a weird issue
that's my guess
ah yes, that makes sense, i think that probably got things into a funky state π
Thanks for all your help guys, much appreciated! πͺ
You're welcome. how's it working out?
Itβs actually going well! I am also writing down my impressions and experience in a short recap so itβs easier to digest for you guys and maybe take something useful out of it
Wohooo @IamIconLiving π, you just became a Waspeteer level 2!
From a newbie point of view
I Will share it later once I have time to finish
that's super useful, thanks! Would you be interested in joining a call next week to tell us about it? Would help us out a lot. If so, @matijash can send you an invite link
ooh yeah that would be amazing @IamIconLiving π π
Feel free to grab sth here for the next week if it works π https://usemotion.com/meet/matija-sosic-8fm/cc2rpm3?d=20
Please choose a time on my Motion page
Iβve shared my calendar availability with you through Motion. Please choose a time that works for you.
Absolutely, no problem! Will send an invite through this thing once back to PC
awesome, really looking fwd π