You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I open localhost:3000 and I see the page, so everything works.
Now, I open new terminal (not closing the server) and trying to run tests:
$ pnpm test
And I see that prisma cannot be found:
But, prisma exists in dependencies section of package.json, and there's also globally installed prisma.
So that's first issue.
Now, in the same folder try to run blitz build
Paste all your error logs here:
$ blitz build
Loaded env from C:\tools\test\.env.local
Loaded env from C:\tools\test\.env
✔ Next.js was successfully patched with a React Suspense fix
✔ Routes manifest was successfully generated
info - Linting and checking validity of types ...Failed to compile.
./vitest.config.ts:1:31
Type error: Cannot find module '@next/env' or its corresponding type declarations.
> 1 | import { loadEnvConfig } from "@next/env"| ^
2 | import { defineConfig } from "vitest/config"
3 |
4 | import react from "@vitejs/plugin-react"
What is the problem?
I am running
blitz new test
, with options:Then:
Then I open localhost:3000 and I see the page, so everything works.
Now, I open new terminal (not closing the server) and trying to run tests:
And I see that

prisma
cannot be found:But, prisma exists in
dependencies
section ofpackage.json
, and there's also globally installedprisma
.So that's first issue.
Now, in the same folder try to run
blitz build
Paste all your error logs here:
Paste all relevant code snippets here:
See above.
What are detailed steps to reproduce this?
See above.
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response
The text was updated successfully, but these errors were encountered: