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.

Compiling with `@vercel/ncc` does not copy the `schema.prisma` file.

See original GitHub issue

Bug description

Compiling with vercel/ncc does not copy the schema.prisma` file

How to reproduce

  1. Create a using Prisma project
  2. install prisma and @prisma/client
  3. install vercel/ncc
  4. run npx ncc build test.ts -o dist
  5. copy dist to Other locations other than the project

Expected behavior

No response

Prisma information

prisma                  : 3.11.0
@prisma/client          : 3.11.0
Current platform        : darwin
Query Engine (Node-API) : libquery-engine b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine        : migration-engine-cli b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash    : b371888aaf8f51357c7457d836b86d12da91658b
Studio                  : 0.458.0

Environment & setup

  • OS:
  • Database:
  • Node.js version:

Prisma Version

3.11.0

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
medzcommented, Mar 26, 2022

@janpio I further tested it, and the newly created pure ts or js project does not have this problem, but using the NestJS framework does not copy schema.prisma to the output directory! Maybe it’s not a Prisma problem, I need to investigate further.

0reactions
Jolg42commented, Dec 7, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deploy a Prisma app to Vercel
Prisma Migrate is based on the Prisma schema and works by generating .sql migration files that are executed against the database.
Read more >
@vercel/ncc - npm
Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.. Latest version: 0.36.0, ...
Read more >
Build on Vercel with Prisma is not working recently (how to ...
In package.json , configuration below should be set so that schema.prisma file located in root path is available when app is deployed. " ......
Read more >
Vercel's pkg - Package your Node.js app into a single ...
Hello all, In this short post, we will take a look at Vercel's pkg - how we can package ... Build the Node.js...
Read more >
Bookmarks - Software Engineer - Simone Corsi
Please do not create issues or send pull requests. ... server with zero third-party dependencies; vercel/ncc - Compile a Node.js project into a...
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