I'm building a Nuxt-electron-prisma app and I kinda stuck here. when I use prisma normally as guided every thing is fine on dev but on build i get this error :

```
A javascript error occurred in the main process
Uncaught exception:
Error: can not find module : '.prisma/client'

```

I tried changing prisma provider output to `../resources/prisma/client`

```js
generator client {
  provider = "prisma-client-js"
  output   = "../resources/prisma/client"
}

```

and in main.js of electron

```js
const { PrismaClient } = require('../resources/prisma/client');
const prisma = new PrismaClient()

```

but I get error `Cannot find module '_http_common' at webpackMissingModules` in both dev and build ! which by others opinion is caused when using prisma on client-side but I only use it on `background.js` (`main.js` of the my boilerplate)

I'm using [Nuxtron](https://github.com/saltyshiomix/nuxtron) boilerplate for Nuxt-electron which is using yml file for electron-builder config file and in it I also added prisma to files property:

```yaml
appId: com.example.app
productName: nuxt-electron-prisma
copyright: Copyright © 2021
nsis: 
  oneClick: false
  perMachine: true
  allowToChangeInstallationDirectory: true

directories:
  output: dist
  buildResources: resources
files:
  - "resources/prisma/database.db"
  - "node_modules/.prisma/**"
  - "node_modules/@prisma/client/**"
  - from: .
    filter:
      - package.json
      - app
publish: null

```

and still get errors

in my `win-unpacked/resources` I have this only: `win-unpacked\resources\app.asar.unpacked\node_modules\@prisma\engines`

[![enter image description here](https://i.stack.imgur.com/wMyij.png)](https://i.stack.imgur.com/wMyij.png)

and of course my package.json

```json
{
  "private": true,
  "name": "nuxt-electron-prisma",
  "productName": "nuxt-electron-prisma",
  "description": "",
  "version": "1.0.0",
  "author": "",
  "main": "app/background.js",
  "scripts": {
    "dev": "nuxtron",
    "build": "nuxtron build"
  },
  "dependencies": {
    "electron-serve": "^1.0.0",
    "electron-store": "^6.0.1",
    "@prisma/client": "^3.0.2"
  },
  "devDependencies": {
    "@mdi/font": "^6.1.95",
    "@nuxtjs/axios": "^5.13.6",
    "@nuxtjs/device": "^2.1.0",
    "@nuxtjs/dotenv": "^1.4.1",
    "@nuxtjs/vuetify": "1.12.1",
    "core-js": "^3.15.1",
    "electron": "^10.1.5",
    "electron-builder": "^22.9.1",
    "glob": "^7.1.7",
    "noty": "^3.2.0-beta",
    "nuxt": "^2.15.7",
    "nuxtron": "^0.3.1",
    "sass": "1.32.13",
    "swiper": "^5.4.5",
    "prisma": "^3.0.2",
    "vue-awesome-swiper": "^4.1.1"
  }
}

```