-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG]: An import path cannot end with a '.ts' extension #2597
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with |
Thank you for bringing this up! Indeed, the import is using a The correct fix would be to simply replace it with a Would you like to submit a PR with a fix? |
Hey @wolfy1339 I actually managed to fix it! Unfortunately I can't use the Upgrading to typescript v Thanks |
I think you overlooked the last part of my last comment. I understand you can't use the Upgrading Typescript definitely does help. Replacing the |
What happened?
Upgraded from version
2.1.0
to3.1.2
ofoctokit
and receiving the above error when building in typescript:If I downgrade to
2.x.x
I no longer have this problem and can see in the@octokit/webhooks/dist-types/types.d.ts
folder that the import changes toThus removing the
.ts
extension.I have added
allowImportingTsExtensions: true
in mytsconfig.json
but still see this error? I would expect this to build without error.Anyone have any ideas?
Versions
Octokit v3.2.1 Node.js 18.15 Typescript 4.7.4
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: