Skip to content

[BUG] - Module not found: Can't resolve '@prisma/client/runtime/library' #657

@Alukkart

Description

@Alukkart

Description

Reading the database works, but as soon as I try to write any changes, this error occurs

Image

Reproduction URL

https://github.com/Alukkart/colizeum-app

Reproduction steps

1. Go to /admin
2. Select any table
3. Try to edit it
4. See error

Next router

App router

Next Admin version

8.4.2

Screenshots

Next Admin options

Logs

GET /admin/zone/cmk03f4qw0000masbv36wh9rr 200 in 41ms (compile: 7ms, render: 34ms)
 ⨯ ./node_modules/@premieroctet/next-admin/dist/handlers/resources.mjs:1:1
Module not found: Can't resolve '@prisma/client/runtime/library'
> 1 | import { PrismaClientKnownRequestError, PrismaClientValidationError } from "@prisma/client/runtime/library";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2 | import { Permission } from "../types.mjs";
  3 | import { hasPermission } from "../utils/permissions.mjs";
  4 | import { getDataItem } from "../utils/prisma.mjs";



Import trace:
  App Route:
    ./node_modules/@premieroctet/next-admin/dist/handlers/resources.mjs
    ./node_modules/@premieroctet/next-admin/dist/appHandler.mjs
    ./app/api/admin/[[...nextadmin]]/route.ts

Browsers

Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions