-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Problem transitioning from js_bindings to typings #4
Comments
try to alias the |
That only solves the print error, the |
@agbossi as Dart doesn't have method overloading, Typings recreates overloads as accessors: addEventListener.$1()
addEventListener.$2() Basically, change your code to use The reasoning behind this is that it makes the bindings sound. |
oooh.. so that's how it should be used. Great now those errors are gone. I updated the relevant lines the following way:
when trying to build, the following happens:
Any ideas about what could be going on? |
it seems to be the same error here. It should work in release mode. |
Yes |
You are right, it works in release mode. Thank you |
yes because the Dart team has been working hard with JS web WASM interop. |
Will do, thank you for everything |
Hi, I apologize if this is not the place for this kind of issues, but there I found very little information.
I have some code in a project that uses js_bindings. Today when working on this project after while I saw that my app doesn't build anymore and that the problem is related to js_bindings dependency, that's when I found it is discontinued, so I'm trying to adapt the code using typings, but I'm having some issues.
here is the most relevant part of the code along with the errors
errors:
Too many positional arguments: 0 expected, but 1 found.
The expression doesn't evaluate to a function, so it can't be invoked
The expression doesn't evaluate to a function, so it can't be invoked.dart[invocation_of_non_function_expression
As I mentioned before, I couldn't find many examples, but from what I understand from the pub.dev documentation, I should be able to use these objects.
What am I missing?
The text was updated successfully, but these errors were encountered: