-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript - can't extend Boom #244
Comments
Have you tried 7.4.9 ? |
Yes, sry I haven't mentioned it right away. Does it work for you? |
We're seeing a similar error in 7.4.9 where Boom is undefined when we import is as such: import Boom from '@hapi/boom';
Boom.isBoom(error) The actual runtime error is: |
Update: it looks like the commit that caused my above issue is feb25bf by @hueniverse cc'ing @el-besto |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
Hi,
in version
@hapi/boom v7.4.2
I was able to extend Boom class like this:and use my custom error in the project. But after version
7.4.3
it can't be done anymore. First of all I need toimport
in a slightly different way and then I get error.So in
7.4.3
with this codeI get error
TypeError: Object prototype may only be an Object or null: undefined
Is it bug or intended feature? If so how to achieve the same effect?
The text was updated successfully, but these errors were encountered: