Hi there! I cannot get model typings and autocompl...
# orm-help
f
Hi there! I cannot get model typings and autocomplete to work on VS Code, i ran
prisma generate
and can use the prisma client, typing
<http://prisma.XXX|prisma.XXX>
suggests my model names correctly, however
prisma.MODEL
contains no typings. Any idea on how i could troubleshoot this?
r
@Francesco Bruno 👋 Could you share a screenshot, I didn’t quite get the
prisma.MODEL
part.
f
Meaning that there are my model names in the typings, but nothing else
r
What’s the version of
prisma
and
@prisma/client
? Could you try deleting
node_modules
package-lock.json
and running
npm install
again?
f
I've deleted and re-installed node-modules, restarted VS Code and the result is the same. Here's
prisma -v
Copy code
> npx prisma -v
Environment variables loaded from .env
prisma                  : 3.1.1
@prisma/client          : 3.1.1
Current platform        : windows
Query Engine (Node-API) : libquery-engine c22652b7e418506fab23052d569b85d3aec4883f (at node_modules\@prisma\engines\query_engine-windows.dll.node)      
Migration Engine        : migration-engine-cli c22652b7e418506fab23052d569b85d3aec4883f (at node_modules\@prisma\engines\migration-engine-windows.exe)  
Introspection Engine    : introspection-core c22652b7e418506fab23052d569b85d3aec4883f (at node_modules\@prisma\engines\introspection-engine-windows.exe)
Format Binary           : prisma-fmt c22652b7e418506fab23052d569b85d3aec4883f (at node_modules\@prisma\engines\prisma-fmt-windows.exe)
Default Engines Hash    : c22652b7e418506fab23052d569b85d3aec4883f
Studio                  : 0.423.0
r
I would suggest setting up a sample Github repo with this error so that I can check what’s causing this.
f
@Ryan i forcibly updated VS Code and now it works, sorry to have bothered you and thanks for your time
💯 1
🙌 1