I found the source for the error I experienced: I imported the needed definition from the wrong file. When I used the correct file reference, the error went away and the build completed.
actually i should i have said this: i wasnt having this issue before, but then i tried to use suspense and loading.tsx and it didnt work (i prob did it incorrectly) so i removed it.
but after i removed its trying to force me to have a loading.tsx...
I dont know why but deleting .next this time worked; I may have not closed the server last time (?) idk if that made a difference but cool its fixed now.