Import issue in routeTree.gen.ts when creating api routes
I have created an API route in
However, when the
This causes an error as the import is incorrect. Am I missing some configuration or is this a known bug?
src/routes/api/auth/$.ts :However, when the
routeTree.gen.ts file gets regenerated it tries to import and use a named export called Route from the api route file which does not exist as the named export is called APIRoute.This causes an error as the import is incorrect. Am I missing some configuration or is this a known bug?