Skip to content

Nuxt 3 example in generator-prisma-client not working #8249

@niekbridge

Description

@niekbridge

Hi,

The Nuxt 3 example project only works in dev. When building the project and running the build I get the following error:
Cannot find module 'PATH_TO_PROJECT_ON_MACHINE/prisma-examples/generator-prisma-client/nuxt3-starter-nodejs/.output/server/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.wasm'. The WASM module does exist in the node_modules folder of the project. It seems that the build somehow ignores the WASM module.

Steps to reproduce:

  1. Clone repo
  2. Follow the steps in the README for the setup
  3. Run a build using pnpm build
  4. Run a preview of the production build using pnpm preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions