-
Notifications
You must be signed in to change notification settings - Fork 20
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
ESM build not updated #173
Comments
Did some more digging and I think I found the issue - it's the tsBuildInfoFile property in the tsconfig file. The ESM tsconfig needs a separate file for incremental compilation, otherwise it won't generate the new ESM files. I added ynab-sdk-js/src/tsconfig.esm.json Lines 5 to 8 in 7cda942
Then when running the The generated Hope that fixes this, but let me know if you need anything else! |
Hey team! I noticed that the
flag_name
property was missing in flagged transactions when using the SDK, and it seems the underlying issue is that the ESM build (under thedist/esm
folder) is not being updated for some reason. This causes ESM bundlers like Parcel to end up with an older version of the SDK. For example, the following file in the ESM build is missing theflag_name
property, which means the property won't be parsed:ynab-sdk-js/dist/esm/models/TransactionDetail.js
Lines 60 to 62 in 7cda942
The
flag_name
property does appear in the Common JS build:ynab-sdk-js/dist/models/TransactionDetail.js
Lines 67 to 70 in 7cda942
Could you take a look? I'm guessing it might have something to do with the OpenAPI Generator that's being used. Let me know if you need more info or if I can help in any way!
The text was updated successfully, but these errors were encountered: