Closed BlackBeardo closed 3 months ago
for visual ref:
Did u try: pnpm run build
in root?
Did u try:
pnpm run build
in root?
pwsh> pnpm build
> create-t3-turbo@ build C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1
> turbo run build
╭──────────────────────────────────────────────────────────────────────╮
│ │
│ Update available v2.0.8 ≫ v2.0.9 │
│ Changelog: https://github.com/vercel/turbo/releases/tag/v2.0.9 │
│ Run "npx @turbo/codemod@latest update" to update │
│ │
│ Follow @turborepo for updates: https://x.com/turborepo │
╰──────────────────────────────────────────────────────────────────────╯
• Packages in scope: @acme/api, @acme/auth, @acme/auth-proxy, @acme/db, @acme/eslint-config, @acme/expo, @acme/github, @acme/nextjs, @acme/prettier-config, @acme/tailwind-config, @acme/tsconfig, @acme/ui, @acme/validators
• Running build in 13 packages
• Remote caching disabled
┌ @acme/db#build > cache hit (outputs already on disk), replaying logs 459277a26a34a2db
│
│ > @acme/db@0.1.0 build C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\packages\db
│ > tsc
└────>
┌ @acme/ui#build > cache hit (outputs already on disk), replaying logs 00fec255097d554b
│
│ > @acme/ui@0.1.0 build C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\packages\ui
│ > tsc
└────>
┌ @acme/validators#build > cache hit, replaying logs d65186b9438feae2
│
│ > @acme/validators@0.1.0 build C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\packages\validators
│ > tsc
└────>
┌ @acme/api#build > cache hit, replaying logs c79197e431b63d2a
│
│ > @acme/api@0.1.0 build C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\packages\api
│ > tsc
└────>
┌ @acme/auth-proxy#build > cache miss, executing 854adffeec4fb7d8
│
│ > @acme/auth-proxy@ build C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\apps\auth-proxy
│ > nitro build
│
│ ✔ Generated public .output/public n
│ itro 12:25:16 pm
│ ℹ Building Nitro Server (preset: node-server) n
│ itro 12:25:16 pm
│ ../../node_modules/@auth/core/lib/utils/cookie.js (1:30): The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
│ ../../node_modules/@auth/core/lib/utils/cookie.js (1:38): The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
│ ../../node_modules/@auth/core/lib/utils/cookie.js (7:30): The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
│ ../../node_modules/@auth/core/lib/utils/cookie.js (7:38): The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
│ ^C ELIFECYCLE Command failed with exit code 3221225786.
└────>
┌ @acme/nextjs#build > cache miss, executing c6ad9ab5c0759d25
│
│ > @acme/nextjs@0.1.0 build C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\apps\nextjs
│ > pnpm with-env next build
│
│
│ > @acme/nextjs@0.1.0 with-env C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\apps\nextjs
│ > dotenv -e ../../.env -- "next" "build"
│
│ ▲ Next.js 14.2.4
│
│ Creating an optimized production build ...
│ Failed to compile.
│
│ ./src/app/api/trpc/[trpc]/route.ts
│ Module not found: Can't resolve '@acme/api'
│
│ https://nextjs.org/docs/messages/module-not-found
│
│ ./src/trpc/server.ts
│ Module not found: Can't resolve '@acme/api'
│
│ https://nextjs.org/docs/messages/module-not-found
│
│ Import trace for requested module:
│ ./src/app/page.tsx
│
│
│ > Build failed because of webpack errors
│ ELIFECYCLE Command failed with exit code 1.
│ ELIFECYCLE Command failed with exit code 1.
│ command finished with error: command (C:\Users\patel\OneDrive\Desktop\t3-next\mono\v1\apps\nextjs) C:\Users\patel\AppData\Roaming\npm\pnpm.cmd run build exited (1)
└────>
× internal errors encountered: unable to determine why task exited
ELIFECYCLE Command failed with exit code 1.```
To fix this, you can try clearing your cache, removing all your projects, deleting the pnpm~.lock file, and then installing the dependencies again.
Also, it seems like a new version of @auth/core and next-auth is being installed, along with the drizzle adapter. I know that installing a new version can sometimes cause issues.
These packages are still in beta, so be aware of that.
If you’re getting new versions, you can remove the ^ from the package version to get exactly that version, if you want to wait for the PR to fix the code.
To fix this, you can try clearing your cache, removing all your projects, deleting the pnpm~.lock file, and then installing the dependencies again.
Also, it seems like a new version of @auth/core and next-auth is being installed, along with the drizzle adapter. I know that installing a new version can sometimes cause issues.
These packages are still in beta, so be aware of that.
If you’re getting new versions, you can remove the ^ from the package version to get exactly that version, if you want to wait for the PR to fix the code.
thanks. I ran pnpm clean:workspaces
, pnpm store prune
, rm -rf .turbo
, reinstalled with pnpm i
and then pnpm build
and things worked.
Provide environment information
Link to reproduction
https://github.com/t3-oss/create-t3-turbo
To reproduce
I did not change any part. not a single word. I did changed env vars, which works perfectly because I did
pnpm db:push
and worked. i confirmed with my supabase dashboard. all tables created. so I have no idea what to fix.Additional information
No response