TS1479 error when importing an ES module from a CommonJS module after upgrading to v10 #768
-
Hi all, I'm encountering a TypeScript error when trying to import a named export from the rambda v10 library in a NestJSS (CommonJS).
My import looks like this:
This used to work fine in rambda v9, but after upgrading to v10, it no longer compiles. My tsconfig.json has:
Questions:
Any help is appreaciateed! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
I will check it and I will get back to you. Thanks for taking the time to describe the problem. |
Beta Was this translation helpful? Give feedback.
-
I tested with your config and it works for me. Can you provide a bit more info? Package.json and full ts config would be enough. |
Beta Was this translation helpful? Give feedback.
-
I found the issue and I will make a release in next two days. Again, thank you for helping out. I will write here when bugfix is released. |
Beta Was this translation helpful? Give feedback.
-
It should be fixed now with latest version. Please comment if that is not the case. |
Beta Was this translation helpful? Give feedback.
-
if you read TS declaration, now all methods are optimized for usage inside |
Beta Was this translation helpful? Give feedback.
It should be fixed now with latest version. Please comment if that is not the case.