question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random error happens on vercel

See original GitHub issue

Current Behavior

Getting this same error so randomly in different apps Error: Command "npx nx build <app name> --prod" exited with SIGTERM on vercel, fine on local build though. And by clicking redeploy will fix it.

Expected Behavior

Builds should pass without clicking redeploy to make them pass

Environment

` Node : 14.17.5 OS : darwin x64 yarn : 1.22.11

nx : 14.0.5 @nrwl/angular : Not Found @nrwl/cypress : 14.0.5 @nrwl/detox : Not Found @nrwl/devkit : 14.0.5 @nrwl/eslint-plugin-nx : 14.0.5 @nrwl/express : Not Found @nrwl/jest : 14.0.5 @nrwl/js : 14.0.5 @nrwl/linter : 14.0.5 @nrwl/nest : Not Found @nrwl/next : 14.0.5 @nrwl/node : Not Found @nrwl/nx-cloud : Not Found @nrwl/nx-plugin : Not Found @nrwl/react : 14.0.5 @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 14.0.5 @nrwl/web : 14.0.5 @nrwl/workspace : 14.0.5 typescript : 4.6.4 rxjs : 6.6.7

Community plugins:

✨ Done in 1.51s.`

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:12
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
lautapercuspaincommented, Aug 30, 2022

Update from the Vercel team on possible ways to fix this issue:

  • Add an environmental variable (NX_CACHE_DIRECTORY = /tmp/nx-cache) in Vercel. (It seems like they prefer this method)
  • Add to your build commands the following argument: --skip-nx-cache (This will effectively skip the NX cache ⚠️)
5reactions
itsrennymancommented, Jul 8, 2022

Experiencing the same problem.

My error is constant the same:

stack: "Error: Cannot find module 'typescript'\n" +

But on manual redeploy it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors – Vercel Docs
A list of errors provided by Vercel CLI or the REST API, with details on how they occur and how to resolve them....
Read more >
next.js - How to debug or handle Vercel ...
It pop up at random times and pages when I am navigating. There are no error raised in browser console. Vercel logs only...
Read more >
500 Internal Server Error on Vercel Deploy - Reddit
You can view your error logs by going to your Vercel dashboard, clicking on your project, and then clicking "View Function Logs". This...
Read more >
Use Next.js and Vercel to build a link-sharing app using ...
This handler assigns a random clientId for the user on the Ably platform, authenticates using the client API key and returns a token...
Read more >
Tutorial: Using Vercel's OG Image Library to Create ... - Prismic
After we have our new Next.js project, we need to install the package that is going to make all the magic happen, that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found