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.

Confusing error message for labels used before definition

See original GitHub issue

The following gives me an unexpected “TS1007: Jump target cannot cross function boundary error” in TS 3.3.33333

function foo() {
    for (let i = 0; i < 10; i++) {
        console.log(`${i}`);
        continue loopend;
    }

    loopend:
    console.log('end of loop');
}

Further investigation… you can jump to the start of the loop, so the error I would argue is that the error message is confusing.

shareable link

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielRosenwassercommented, Mar 14, 2019

~Did you try adding 3s to the version to see if the error gets better?~

Seems like a reasonable request.

0reactions
mInzamamMalikcommented, Jan 22, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Messages: Examples, Best Practices & Common Mistakes
4 common mistakes with error messages. 1. Ambiguity. Your error messages should clearly define the problem. Ever gotten a message like the ...
Read more >
Understanding SC 3.3.2:Labels or Instructions (Level A) - W3C
A field for entering a given name is clearly labeled with "Given Name" and the field for family name is labeled "Family Name"...
Read more >
How to Use Error Messages in Online Forms - Zuko Analytics
Advice on how to make error messages in forms your friend and improve your checkout ... Unclear or confusing field labels; Complex requirements...
Read more >
Error creating confusion matrix although label encoding done ...
In the data you have type float, while you defined classes (in the 3rd line from the end of the file) as strings....
Read more >
List of Error-Prone Abbreviations
Use mL. Error-Prone Abbreviations, Symbols, and Dose Designations ... may have a dual meaning or may be confused with other common acronyms, ...
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