0

I am trying to implement the next js e-commerce template but gettin gthis error while using the command 'pnpm build'.

the error

nte-691-vm@nte-691-vm:~/Videos/company_project/cranberry-muffin/frontend$ pnpm build

> commerce@ build /home/nte-691-vm/Videos/company_project/cranberry-muffin/frontend
> turbo run build --filter=next-commerce...

• Packages in scope: @vercel/commerce, @vercel/commerce-local, next-commerce
• Running build in 3 packages
@vercel/commerce:build: cache miss, executing 51ae8d898ed31ce0
@vercel/commerce:build: 
@vercel/commerce:build: > @vercel/commerce@0.0.1 build /home/nte-691-vm/Videos/company_project/cranberry-muffin/frontend/packages/commerce
@vercel/commerce:build: > taskr build
@vercel/commerce:build: 
@vercel/commerce:build: [12:48:13] Running with /home/nte-691-vm/Videos/company_project/cranberry-muffin/frontend/packages/commerce/taskfile.js
@vercel/commerce:build: [12:48:13] Starting build
@vercel/commerce:build: [12:48:13] build failed because task.source(...).swc is not a function
@vercel/commerce:build: Task chain was aborted!
@vercel/commerce:build: [12:48:13]  ELIFECYCLE  Command failed with exit code 1.
@vercel/commerce:build: ERROR: command finished with error: command (/home/nte-691-vm/Videos/company_project/cranberry-muffin/frontend/packages/commerce) pnpm run build exited (1)
command (/home/nte-691-vm/Videos/company_project/cranberry-muffin/frontend/packages/commerce) pnpm run build exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    731ms 

 ELIFECYCLE  Command failed with exit code 1.

I have tried deleting all node modules with package-lock.json file and again installing them by using the command "pnpm i"

0 Answers0