-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Compilation errors in Schema.d.ts
file
#1841
Comments
Should be fixed in
(having an additional step in our CI pipeline would be nice indeed) |
Thank you for quick solution! 👍 I can confirm things now compile without errors. I think that's because my project already has reference to I can take a look to see if I can create something for the CI step, in the following days. |
Upgrading to latest deps (Effect-TS/schema#211) added a new error in my setup:
|
@gcanti FWIW, my {
"dependencies": {
"@effect/match": "0.10.1",
...
},
"resolutions": {
"@effect/data": "0.10.2",
"@effect/schema": "0.9.1",
...
} And TSC ( |
@stazz I'm using latest /schema ( |
…d `TaggedRequest` to avoid errors in `Schema.d.ts`, closes #1841
🐛 Bug report
Current Behavior
Running
tsc
for any code using@effect/schema
library version0.9.0
results in the following error messages:Expected behavior
Running
tsc
will not produce any errors.Reproducible example
Any code which
import
s@effect/schema
library version0.9.0
.Suggested solution(s)
I again propose adding a step to your CI/CD pipeline, which would try to compile/transpile some small dummy code against the
d.ts
files produced by previous compilation/transpilation step.That will add safeguard against these kind of errors for the future, at least for one TSC version.
Additional context
There luckily is workaround to add
--skipLibCheck
totsc
, so this bug is not a blocker.Though, the workaround will then affect all
.d.ts
files, both own and all the libraries innode_modules
.Your environment
I think I saw similar error also in
0.8.0
.The text was updated successfully, but these errors were encountered: