Jon Vivian

Results 6 comments of Jon Vivian

EDIT: The workaround a posted seems to result in deleting the folder contents on 'npm i' so don't do this: I renamed from `packages/utils` to `packages/@repo__utils`

Workaround is to add empty imports per the error messages, eg: ``` import type {} from "@uploadthing/shared" import type {} from "next/server" ``` edit: added type annotation per suggestion below

Nice, I mostly raised the bug to document the workaround and see if there were any better solutions.

Except it is what is happening. You can test it with the linked reproduction. If you're not convinced - this code produces the same error: ``` import { getImages }...

To be clear, if I move the instantiation into the server action, rather than at the top level of the file, that would also solve the problem. This is a...

Yours has "use server" at the top level of the file, which causes subtly different behavior. My understanding is that will mean that the instantiation of the utapi is encapsulated...