prisma-session-store icon indicating copy to clipboard operation
prisma-session-store copied to clipboard

Types of prisma-session-store taking over regular prisma types

Open rowan-vr opened this issue 2 years ago • 5 comments

Hi,

I've been having an issue where the types of prisma-session-store are 'overruling' the types of Prisma (see screenshot). Any idea how to fix this?

image

rowan-vr avatar Mar 21 '23 14:03 rowan-vr

Hi @rowan-vr - thanks for the post.

I'm not 100% certain, but I think this might be a syntax error.

If you remove "args:", and just include the {where:...}, does VS code stop complaining?

kleydon avatar Mar 21 '23 16:03 kleydon

Hi, thanks for the quick reply!

This is not in VS Code, I'm using Webstorm. The args: is not actually there, it's the way Webstorm shows what variable it is.

This issue goes away when I completely delete the prisma.d.ts & prisma.js fils from the dependency in the @types folder node_modules/@quixo3/prisma-session-store/dist/@types to be precise.

I hope this helps!

rowan-vr avatar Mar 21 '23 16:03 rowan-vr

Ah - ok... Shoot; I don't have an "easy fix" in this case.

Note: My time's pretty limited to work on this right now; I'm hoping the wider community that uses this library can step in here. (If you have any epiphanies, I'm sure others will appreciate them!)

kleydon avatar Mar 21 '23 16:03 kleydon

Ha, I thought was going crazy. I am running into the exact same issue - and honestly I am not sure whether its webstorms fault or not, is someone able to reproduce this in vscode?

I'll try to find out more since its actually bugging me.

Mydayyy avatar Mar 28 '23 12:03 Mydayyy

@Mydayyy Appreciate it (if you happen to get a chance)!

kleydon avatar Mar 28 '23 15:03 kleydon