You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something I need to understand is if this is a problem with the code or with the build, I'm aware that this needs to be better typed and we are working on a roadmap for the next release with proper types and better dx, but do you think this is an issue that we can fix now working on the build?
quick fix the types directly in code just like in a diff, so it already works for people having problems like we do.
long term do not include ts files into the package artifacts.
Longer version:
The general problem is that you include ts files into the package distribution. Ts host projects when importing your package, will try to compile them. Which is not optimal on it's own (among others: compilation time, compatibility, host projects may use different ts settings uncompatible with the code). In our case, if we include strict checks on nulls in our ts config, our code does not compile anymore because compiler as well compiles your package's ts files.
Proper solution would be to not include ts files into the package, so typescript apps instead of using those files use precompiled package code, avoiding these issues altogether and saving on compilation times AND as well on compaitibility.
BUT
For us it would work if you just fix the types in code, so it compiles if it's used. E.g. applying the suggested diffs to make it work with strict ts configs.
This will not require a "breaking change" how package is distributed.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.App is not bundled correctly, and ts files directly imported into my project and compiler runs checks on them.
excluding node_modules and skipLibCheck: true in tsconfig do not resolve the issue.
Lost couple of hours for debugging but can continue after using patch-package to get through
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: