Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Doesn't work with src directory #504

Open
dhruvwill opened this issue Dec 19, 2024 · 2 comments
Open

[BUG] - Doesn't work with src directory #504

dhruvwill opened this issue Dec 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dhruvwill
Copy link

dhruvwill commented Dec 19, 2024

Description

while running the command npx @premieroctet/next-admin-cli@latest init throws error Schema file "D:\Projects\xyz\prisma\schema.prisma does not exist".

I am using nextjs src directory.

i tried manually setting up the next-admin, but ran into issues.
image

Note: I added generator to schema.prisma file. ran the generate command too, still the issue persists.

Reproduction URL

notneeded

Reproduction steps

-

Next router

App router

Next Admin version

7.1.0

Screenshots

Next Admin options

import { NextAdmin, PageProps } from "@premieroctet/next-admin";
import { getNextAdminProps } from "@premieroctet/next-admin/appRouter";
// import { prisma } from "@/prisma";
import { db as prisma} from "@/lib/db";
// import "@/styles.css"; // .css file containing tailiwnd rules
import "@/app/globals.css"

export default async function AdminPage({ params, searchParams }: PageProps) {
  // or PromisePageProps for Next 15+
  const props = await getNextAdminProps({
    params: params.nextadmin,
    searchParams,
    basePath: "/admin",
    apiBasePath: "/api/admin",
    prisma,
    /*options*/
  });

  return <NextAdmin {...props} />;
}

Logs

✓ Starting...
 ✓ Ready in 4.7s
 ○ Compiling /src/middleware ...
 ✓ Compiled /src/middleware in 7.6s (1189 modules)
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 GET /_next/static/webpack/d4ba8d2ff4150221.webpack.hot-update.json 404 in 9036ms
 ✓ Compiled in 1622ms (383 modules)
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 GET /_next/static/webpack/d4ba8d2ff4150221.webpack.hot-update.json 404 in 133ms
 ○ Compiling /admin/[[...nextadmin]] ...
 ⚠ ./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
Module not found: Can't resolve '.next-admin/schema.json' in 'D:\Projects\cowrite\node_modules\.pnpm\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u\node_modules\@premieroctet\next-admin\dist\utils'

Import trace for requested module:
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/appRouter.js
./src/app/admin/[[...nextadmin]]/page.tsx
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 GET /_next/static/webpack/d4ba8d2ff4150221.webpack.hot-update.json 404 in 815ms
 GET /admin 200 in 11616ms
 ⨯ Error: Schema not found, make sure you added the generator to your schema.prisma file
    at getJsonSchema (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:59:15)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:62:22)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1227:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js:19:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1207:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js:9:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1217:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43) {
  type: 'Error',
  page: '/admin'
}
 ⨯ Error: Schema not found, make sure you added the generator to your schema.prisma file
    at getJsonSchema (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:59:15)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:62:22)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1227:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js:19:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1207:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js:9:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1217:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43) {
  type: 'Error',
  page: '/admin'
}
 ⚠ ./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
Module not found: Can't resolve '.next-admin/schema.json' in 'D:\Projects\cowrite\node_modules\.pnpm\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u\node_modules\@premieroctet\next-admin\dist\utils'

Import trace for requested module:
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/appRouter.js
./src/app/admin/[[...nextadmin]]/page.tsx
 GET /admin 500 in 1467ms
 ⚠ ./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
Module not found: Can't resolve '.next-admin/schema.json' in 'D:\Projects\cowrite\node_modules\.pnpm\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u\node_modules\@premieroctet\next-admin\dist\utils'

Import trace for requested module:
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/appRouter.js
./src/app/admin/[[...nextadmin]]/page.tsx
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 GET /admin 200 in 2137ms
 GET /_next/static/webpack/d4ba8d2ff4150221.webpack.hot-update.json 404 in 2237ms
 ⨯ Error: Schema not found, make sure you added the generator to your schema.prisma file
    at getJsonSchema (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:59:15)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:62:22)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1227:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js:19:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1207:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js:9:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1217:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43) {
  type: 'Error',
  page: '/admin'
}
 ⨯ Error: Schema not found, make sure you added the generator to your schema.prisma file
    at getJsonSchema (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:59:15)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js:62:22)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1227:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js:19:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/prisma.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1207:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js:9:65)
    at (rsc)/./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js (D:\Projects\cowrite\.next\server\vendor-chunks\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u.js:1217:1)
    at __webpack_require__ (D:\Projects\cowrite\.next\server\webpack-runtime.js:33:43) {
  type: 'Error',
  page: '/admin'
}
 GET /admin 500 in 1259ms
 ⚠ ./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
Module not found: Can't resolve '.next-admin/schema.json' in 'D:\Projects\cowrite\node_modules\.pnpm\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u\node_modules\@premieroctet\next-admin\dist\utils'

Import trace for requested module:
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/appRouter.js
./src/app/admin/[[...nextadmin]]/page.tsx
 ⚠ ./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
Module not found: Can't resolve '.next-admin/schema.json' in 'D:\Projects\cowrite\node_modules\.pnpm\@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u\node_modules\@premieroctet\next-admin\dist\utils'

Import trace for requested module:
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/server.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/utils/props.js
./node_modules/.pnpm/@premieroctet+next-admin@7.1.0_@prisma+client@6.1.0_prisma@6.1.0__@types+react-dom@18.3.1_@ty_ayfddcnai2ekb4z5zr6parc56u/node_modules/@premieroctet/next-admin/dist/appRouter.js
./src/app/admin/[[...nextadmin]]/page.tsx
 GET /favicon.ico 200 in 752ms

Browsers

Chrome

@dhruvwill dhruvwill added the bug Something isn't working label Dec 19, 2024
@dhruvwill
Copy link
Author

dhruvwill commented Dec 19, 2024

here's the prisma schema file.

generator nextAdmin {
  provider = "next-admin-generator-prisma"
}

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}
// models

@foyarash
Copy link
Collaborator

Hello,

Thanks for the issue, this might be related to pnpm. Would it be possible for you to quickly have a try with yarn ?
We'll have to make it work for pnpm if it works for yarn.

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants