-
Notifications
You must be signed in to change notification settings - Fork 3
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
Import errors with --moduleResolution 'node16' or 'nodenext' #41
Comments
Really I should be using If I update it now I'm worried it'll be a breaking change. Need to do some research on the impact of changing |
Hello @simonmcallister0210 first of all, thanks for your work, is there any progress for this issue? The solution from author are works, but we are not want to patch or fork from this repo. |
Would be risky making this change in a minor version update. What I could do is push a beta release of the package that would contain the fix. Would that work as a temporary solution? (at least until v3 is released) |
@simonmcallister0210 sounds good, would been really appreciated if you do it :) |
Hey @DmitryLyubetsky, looking at the fix I've just bundled the declaration files into file to avoid import statements. This shouldn't cause any issues for existing users so should be safe for release in v2 I've published a beta version under 2.3.2-beta-v1. Let me know if there are any issues. If there's no issues I'll merge it in |
@simonmcallister0210 hey, sorry for the late reply, I check the beta version, and it's works without issues, thanks. |
Cool I'll merge it in tonight |
Just published. Should be live under the latest patch 2.3.2 |
My Typescript project is set up with both these settings in the tsconfig.json:
"module": "NodeNext", "moduleResolution": "NodeNext"
.I tried to import functions from cognito-srp-helper like 'createSrpSession' but this produced the error "Module 'cognito-srp-helper' has no exported member 'createSrpSession'. When I looked into the file 'node_modules/cognito-srp-helper/dist/types/index.d.ts' I see multiple errors like
and so on. I could manually fix these by appending the '.ts' extension to the exports and make the compiler happy. Same with 'cognito-srp-helper.d.ts' file.
The text was updated successfully, but these errors were encountered: