-
Notifications
You must be signed in to change notification settings - Fork 8
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
[rescript] Not working with playwright #404
Comments
So, after splitting the modules into different files, I see that it created modules with cyclic dependencies. For example:
which creates something like the following in rescript: module Request = {
type t;
@send external response: (t) => Promise.t<Null.t<Response.t>> = "response"
}
module Response = {
type t;
@send external request: (t) => Request.t = "request"
} What would be the fix for those scenarios ? |
In this case, |
I used that full option but didn't work, it does emit some recursive modules when it emits the resi file but it does not compile still |
Were you able to replicate the issue ? |
Sorry, I didn't have an enough free time recently to fully investigate it (a business/school year starts at April in my country). I'll look into it this week. |
From what I can see, ReScript does not support mutually recursive source files, and, unfortunately, it is very difficult for Luckily,
Then you would need to modify the output, as it contains several broken
I've successfully compiled it in PR #412 with the above options and modifications: |
Could you provide instructions on how to make it work with the definition files in the playwright repo ? -> https://github.com/microsoft/playwright/tree/main/packages/playwright-core/types
Do I need to run the command for just the main definition file ? or for every file ?
context: I have tried but I always get code that does not compile
I am using latest version of rescript btw (11.0.1)
The text was updated successfully, but these errors were encountered: