-
Notifications
You must be signed in to change notification settings - Fork 41
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
Cannot use namespace 'SonicBoom' as a type. #44
Comments
If you're gettin this, a solution for me was to explicitly use
In any custom pino-wrapper packages |
If you can somehow fix the Specifically change
to
But I don't know which is easier to do nor which is most correct. |
@kibertoad ptal. |
@jontroncoso the easiest way is for you to send a PR. |
IIRC correctly, export = x requires esinterop enabled and we removed it from other places, such as fastify-swagger, for same reason. |
@mcollina Instead of changing types-pino, we can merge the pino types PR, that would fix problem as well, but yes, for sonic-boom this likely should have been a semver major. |
I'm reverting the types here asap. |
Sure. But, I wasn't sure if you which direction you wanted to go. Anyway, thanks for addressing so quickly. |
When using
@types/pino
for pino which has sonic-boom as a dependency and uses@types/sonic-boom
for the types, I getCannot use namespace 'SonicBoom' as a type.
. After tracking this down this has to do with a discrepancy between@types/sonic-boom
andsonicboom/types/index.d.ts
.Specifically:
should be
The text was updated successfully, but these errors were encountered: