question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prisma generate removes node modules

See original GitHub issue

After running the prisma generate command, ts-node-dev gets removed from the modules but still shows it in the package file.

A simple yarn install fixes it but don’t know why it happens in the first place.

package.json

  "devDependencies": {
    "@types/body-parser": "^1.19.0",
    "@types/config": "^0.0.38",
    "@types/cors": "^2.8.9",
    "@types/node": "^14.14.25",
    "@types/restify": "^8.5.0",
    "@types/restify-errors": "^4.3.3",
    "module-alias": "^2.2.2",
    "ts-node": "^9.1.1",
    "ts-node-dev": "^1.1.1",
    "typescript": "^4.1.3"
  },

Prisma Client 2.16.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pantharshit00commented, Mar 10, 2021

@chrisbra-riftpay

You need the @prisma/client package in dependencies as it contains the runtime for the client. prisma package just contains the cli that can generate the types for the client. Also, are you still able to reproduce this with 2.18?

1reaction
pantharshit00commented, Feb 9, 2021

I also haven’t seen this and I can’t reproduce this as well. I will wait for more reports here and see if we can get a reliable reproduction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't remove generated files inside node_modules (for ...
In doing so, any custom or locally-created files within node_modules are removed. Prisma[1] is a Node.js ORM and generates client files to talk...
Read more >
Prisma CLI Installation (Reference)
The Prisma CLI is typically installed as a development dependency, that's why the --save-dev (npm) and --dev (Yarn) options are used in the...
Read more >
Prisma | NestJS - A progressive Node.js framework
Note The prisma generate command reads your Prisma schema and updates the generated Prisma Client library inside node_modules/@prisma/client . Use Prisma Client ...
Read more >
serverless-webpack-prisma-engines - npm
When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.. Latest version: 1.1.1, ...
Read more >
serverless-webpack-prisma-engines - NPM Package Overview
When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found