-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
A recent change in the release process breaks importing into typical typescript projects #1306
Comments
So Agree |
yep, that's correct. 6.4.0 seems to work just fine, but 6.5.0 causes that error. I'm not sure if it's 6.5 or one of the 6.4 point releases. I skimmed the changelog, and nothing jumped out as a likely culprit, but I didn't look at code.
Yea :) It made a lot of sense until I tried it and then
yep, thanks! I really appreciated that one:) side note on it, the typescript folks seem to be formalizing a
to this
is one step towards making |
🤦 Oh shoot that should be there. That’s just an oversight. You’re right probably not the central issue here, but that’s a quick-and-easy fix regardless. |
Sorry, I just realized it's not a recent change. A recent change broke the local patch that I have to address the issue 🤦♂️. I originally patched locally against 6.3.9, so the issue is at least that old. |
Ah OK that makes more sense! |
I bet it's this commit which switched tsconfig to use |
Sorry this took a little bit to dig into further. Just reverted this behavior; next patch version will restore the |
Description
Somewhere between
6.4.0
and6.5.0
,openapi-typescript
's internal types changed and the package can no longer be imported by projects that use"moduleResolution": "node"
. I've been trying to switch to"moduleResolution": "nodenext"
, but it's probably too strict to use for several years.openapi-typescript
6.5.0
typescript
5.1.6
18.17.0
macOS 13, Windows 11, etc.
Reproduction
How can this be reproduced / when did the error occur?
Install 6.5 or later, change
moduleResolution
tonodenext
intsconfig.json
, andimport from 'openapi-typescript'
somewhere in your project.Expected result
No errors from inside node_modules.
Checklist
My OpenAPI schema passes the Redocly validator (Not Applicablenpx @redocly/cli@latest lint
)I’m willing to open a PR (see CONTRIBUTING.md)The URL is not foundThe text was updated successfully, but these errors were encountered: