SudoerWithAnOpinion
SudoerWithAnOpinion
TtRPC
Created by Typedef on 8/31/2023 in #❓-help
The inferred type of this node exceeds the maximum length the compiler will serialize.
sudosus
10 replies
TtRPC
Created by Typedef on 8/31/2023 in #❓-help
The inferred type of this node exceeds the maximum length the compiler will serialize.
Strange
10 replies
TtRPC
Created by Typedef on 8/31/2023 in #❓-help
The inferred type of this node exceeds the maximum length the compiler will serialize.
Double check that this file isn't part of a circular import. Also, if you have an awsRouter, if you tab-completed and changed the var to appRouter, the TS-lang server might need a restart. I've seen it get stuck like this before.
10 replies
TtRPC
Created by SudoerWithAnOpinion on 8/31/2023 in #❓-help
Transformers not transforming data (trpc-sveltekit)
I have changed from superJSON to trpc-transformer to no avail.
3 replies
TtRPC
Created by Typedef on 8/31/2023 in #❓-help
The inferred type of this node exceeds the maximum length the compiler will serialize.
What are the contents of ../header? Is that file importing this one?
10 replies
TtRPC
Created by SudoerWithAnOpinion on 8/31/2023 in #❓-help
Transformers not transforming data (trpc-sveltekit)
For added contextm this is one of my routers...
import { Punch } from '$lib/models'; // Sequelize Model
import { auth } from '$lib/trpc/middleware/auth';
import { t } from '$lib/trpc/t';
const router = t.router({
lastPunch: t.procedure.use(auth).query(async ({ ctx }) => {
return Punch.findOne({
where: { user_id: ctx.session?.user.id }
}).then((result) => {
return result; // instance of Punch or NULL
});
}),
});
import { Punch } from '$lib/models'; // Sequelize Model
import { auth } from '$lib/trpc/middleware/auth';
import { t } from '$lib/trpc/t';
const router = t.router({
lastPunch: t.procedure.use(auth).query(async ({ ctx }) => {
return Punch.findOne({
where: { user_id: ctx.session?.user.id }
}).then((result) => {
return result; // instance of Punch or NULL
});
}),
});
3 replies
TtRPC
Created by Eternal Mori on 8/30/2023 in #❓-help
Wrong JSON response when deployed
We will need more information to dive into this: there isn't any way to know what is happening here. This could be a dev DB returning the correct thing but production does not. Maybe it's an external API that is throwing an error, etc. Can you provide some context and maybe some code that you're using? Also, is there any specific differences between dev and prod like a DB adapter or other envvars?
3 replies