-
Notifications
You must be signed in to change notification settings - Fork 74
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
Missing dependency for @types/launchdarkly-eventsource #705
Comments
Oh wait. There isn't a |
Actually, I think something could still be done to improve the experience. declare module 'launchdarkly-eventsource'; This could either be done directly in the |
Hi @tlevesque-ueat. The dependency was added for Unleash to test experimental SSE support. Can you let us know if you're getting this error when using unleash-client-node package as a dependency in your project or building a custom package from the sources yourself? |
@tlevesque-ueat did you try to add |
Hi, I'm using it as a dependency in my project. I'm not using SSE support.
It's already excluded. |
Can you provide us with a minimal reproduction case so that we can debug it? Ideally a mini setup with package.json and tsconfig that you use? |
BTW we already have |
OK, here's the simplest repro I could make: Build it with Basically, I think you just need to import something from
Yes, I noticed that. But it doesn't appear in the .d.ts file, which is read by the TS compiler... |
Ok, I found the root cause. I'll work on a solution. It's not about |
@Tymek thanks! |
Actually, I think it's both. The error will occur if |
Thanks a lot for reproducible example. It helped a lot, and will become a part of our tests. |
fix error with dependency types and add test to catch install issues in the future closes #705
Shipped in latest (v6.4.4) |
Thanks for the fix! |
Describe the bug
Got this error after upgrading from 6.1.3 to 6.4.3:
Shouldn't
@types/launchdarkly-eventsource
be listed as a dependency?Steps to reproduce the bug
In a project using Typescript, upgrade from 6.1.3 to 6.4.3 (not sure when the dependency on launchdarkly-eventsource was introduced, maybe 6.3.0)
Try to compile.
Expected behavior
Should compile without issue
Logs, error output, etc.
Screenshots
No response
Additional context
No response
Unleash version
6.4.3
Subscription type
Open source
Hosting type
Hosted by Unleash
SDK information (language and version)
No response
The text was updated successfully, but these errors were encountered: