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

Node.js scripting: --library hxnodejs not supported #157

Open
cedx opened this issue May 22, 2021 · 0 comments
Open

Node.js scripting: --library hxnodejs not supported #157

cedx opened this issue May 22, 2021 · 0 comments

Comments

@cedx
Copy link

cedx commented May 22, 2021

These prologs work (i.e. the selected compilation target is JavaScript) :

//! -L hxnodejs
//! -lib hxnodejs

But not this one (i.e. the selected compilation target is Eval) :

//! --library hxnodejs

It triggers this kind of errors:

You cannot access the js package while targeting eval (for js.node.Buffer)

The issue can be avoided by adding --define hxnodejs:

//! --define hxnodejs --library hxnodejs

(lix 15.10.1 with Haxe 4.2.2 on Windows 10)

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

1 participant