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.

Causes tsc to stall indefinitely

See original GitHub issue

Initial checklist

Affected packages and versions

4.1.0

Link to runnable example

No response

Steps to reproduce

clone https://github.com/cjroebuck/next-build-stalled

npm i
npx tsc

typescript version 4.5.2

(typescript version 4.4.3 does build ok)

Expected behavior

build shouldn’t stall

Actual behavior

build stalls indefinitely

In order to get the build to pass, comment out this line

I suspect it’s an issue with the unist-util-visit types?

Runtime

Node v16

Package manager

npm v7

OS

macOS

Build and bundle tools

Next.js

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kylekampycommented, Dec 27, 2021

Alternative to pinning typescript version - you can pin unist-util-visit to 4.0.0 and also avoid the tsc hang.

1reaction
ChristianMurphycommented, Mar 1, 2022

This has been resolved in TypeScript 4.6 https://devblogs.microsoft.com/typescript/announcing-typescript-4-6/#improved-recursion-depth-checks The fix has also been backported to 4.5

You may already have this change because it was cherry-picked into TypeScript 4.5.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clocksource tsc unstable leads to lockups - Launchpad Bugs
The TSC messages are indeed not issued, neither are btw the "hpet increasing" errors, but the system still stalls after a while.
Read more >
Long stall of a core - Processors forum - Processors - TI E2E support ...
I saw that from time to time a core was stalled for a long time, namely 500 seconds (+- 1 second)! After this...
Read more >
WO2011087558A2 - Controlling time stamp counter (tsc) offsets for ...
Having time going backwards between two processors can cause adverse results, ... to update the TSC value for a given core can be...
Read more >
INFO: rcu_preempt detected stalls on CPUs/tasks
sleep indefinitely, in turn indefinitely delaying completion of the ... This commit therefore makes CPUs check more carefully before starting a
Read more >
Getting the Smell Out of Your Rubber Gym Floor - Gym Crafter
The heat from the sun will speed the release of chemicals causing the ... outlet than you would spend on stall mats from...
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