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.

SubmissionError instance loses prototype information

See original GitHub issue

Somehow Instances of SubmissionError lose their prototype information up until Error.

const error = new SubmissionError()
console.log(error instanceof SubmissionError) // false

I tried this code in the examples of this repo and there it works 🙈 It is probably something related to my webpack/babel setup If I had to guess. I am using a react-boilerplate repo with webpack version 2.1.0-beta.28.

Maybe somebody has an Idea what is wrong here… Any help is greatly appreciated 😊

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
bjyoungbloodcommented, Jan 4, 2017

I merged bjyoungblood/es6-error#26 and published a patch this morning. Hopefully that will fix this issue.

0reactions
lock[bot]commented, Jun 2, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SubmissionError instance loses prototype information · Issue #2377 ...
Somehow Instances of SubmissionError lose their prototype information up until Error. const error = new SubmissionError() console.log(error instanceof ...
Read more >
Losing instance of a class while using next to pass error in ...
I am trying to create custom errors for better reporting on my API. I am using a custom class called ValidationError . I...
Read more >
XForms 2.0 - XForms Users Community Group - W3C
This property describes the kind of data collected in the associated instance data node, according to the P3P specification [P3P 1.0]. This information...
Read more >
All other Quebec fixes - Product Documentation | ServiceNow
Problem category Number Short description Activity Stream PRB1432278 Potential translation issues Advanced Work Assignment PRB1413067 The Reassignable field is not editable Advanced Work Assignment PRB1396483 Random...
Read more >
Error.prototype.stack - JavaScript - MDN Web Docs - Mozilla
The non-standard stack property of an Error instance offers a ... now produces stacks with more detailed information about the line and ...
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