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.

Errors should tell me _where_ the error is

See original GitHub issue

šŸ› bug report

I get errors stating a problem, but not where it was encountered.

$ npx parcel build index.html things/**/index.html 

Screen Shot 2020-12-14 at 11 29 24 (This one was a left-over unpkg.com import in a JS file)

Screen Shot 2020-12-14 at 11 29 29 (This one was in a SVG file. Gonna file another bug for this)

šŸŒ Your Environment

Software Version(s)
Parcel 2.0.0-beta.1
Node v14.9.0
npm/Yarn npm@6.14.9
Operating System MacOS 10.15.7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mischniccommented, Dec 14, 2020

For terser, we use sourcemaps to convert the error location back to the source. But this isn’t always possible and there are furthermore no HTML sorucemaps…

that could be done more generally

But I’m convinced šŸ˜„ -> https://github.com/parcel-bundler/parcel/issues/5477

deleting .parcel-cache didn’t solve the issue here for me.

Any chance you can post a reproduction?

0reactions
surmacommented, Dec 14, 2020

Screen Shot 2020-12-14 at 16 45 19

Another one. It tells me line and character, but not which file.

But this error is either caused by a malfunctioning plugin or a Parcel bug (probably the same as #5311). You probably expected a file path to be printed?

I don’t know — I guess that’s kind of the problem. Fwiw, unlike #5311, deleting .parcel-cache didn’t solve the issue here for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tired of Error Messages? You Shouldn't Be — And Here's Why
Let's outline a couple of steps to take to solve any compiler errors—errors that print out to the console as you code—that you...
Read more >
7 Types of Software Errors That Every Tester Should Know
In this article, we will be discussing common software errors and how to identify them during testing with examples and simple exercises.
Read more >
The 7 Most Common Types of Errors in Programming and ...
Get better at spotting them early, but know you will never be perfect. Hopefully, this guide has prepared you for the different types...
Read more >
Can I get Visual Studio 2019 to show me what line of code ...
this question really depends on the kind of error we are talking about. You could have a logic error in which the program...
Read more >
Detect errors in formulas - Microsoft Support
You can use error checking to detect errors in formulas. The rules don't guarantee error-free worksheets, but they can help find common mistakes....
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