-
Notifications
You must be signed in to change notification settings - Fork 339
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
v10 isn't loading the type file correctly #492
Comments
Yup, this breaks for CommonJS import resolution:
Looks like dual-publishing is not setup correctly. |
Yup, we seem to have some sort of issue going on, one that is on the list to try to figure out when I have the time, for now, it's probably best to stick to v9 if you are getting these errors, in my testing, it did load for common js, but it seems I didn't hit every use case. I'm not sure how to do that / if that's actually possible. One avenue may be that we need to add |
I have published a canary version: |
@nicholasgriffintn Your canary version worked for us. We attempted to update from
Using |
Awesome, I've released it now as 10.2.0. Will leave this open in case it didn't fix it, and will close later if it did. |
@nicholasgriffintn Thank you, it works now! |
@nicholasgriffintn
However, in another project with the following tsconfig settings,
The error we get with
Sorry, I know this must be a pain! There might be settings we can change to try to rectify it, but this isn't an issue we have with the other libs we import, so I'm guessing it won't just be me. |
@trevor-brandt Sorry, not sure I'm able to replicate, we have a few examples going here, they all seem to be loading up as expected: https://github.com/bbc/sqs-consumer-starter/tree/main/examples Would you mind forking and providing an example according to the closest one to your setup please? This is one I've setup using your tsconfig: https://github.com/bbc/sqs-consumer-starter/tree/main/examples/ts-commonjs-node16 |
Update: I've published Maybe that version might fix the issue for you? |
@nicholasgriffintn , I started taking a look at your starter example and couldn't repro until I noticed you're using I'm able to repro with a couple changes to your ts-commonjs-node16 if I revert to Thanks for all your efforts to get this stuff ironed out! |
@nicholasgriffintn And I just noticed your comment about |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Discussed in #491
Originally posted by tyler-g April 29, 2024
Summary
Hey all, we saw this was already mentioned for the breaking change in v10:
v10.0.0
Potentially Breaking Changes
SQS Consumer has been transitioned to use ESM in its codebase, in order to support this, we have had to change how we deploy the package in order to build both ESM and CJS versions of the package.
This may cause issues with your software, if it does, please let us know.
This has forced us to be stuck on v9 because on v10 it will not find the type index file in sqs-consumer package. Wanted to check if there is any follow up to this that will eventually let us upgrade, or if we'll be stuck on v9. Thanks
Example
No response
The text was updated successfully, but these errors were encountered: