kleydon / prisma-session-store

Express session store for Prisma
MIT License
123 stars 19 forks source link

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

Open rowan-vr opened 1 year ago

rowan-vr commented 1 year ago

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

kleydon commented 1 year ago

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?

rowan-vr commented 1 year ago

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!

kleydon commented 1 year ago

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!)

Mydayyy commented 1 year ago

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.

kleydon commented 1 year ago

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