Closed zhaoterryy closed 5 years ago
Getting: Warning : Should be used in initialization macros only: haxe.macro.Compiler.define(jquery_ver, 30301) after updating to Haxe 4.0.0-rc.4.
Warning : Should be used in initialization macros only: haxe.macro.Compiler.define(jquery_ver, 30301)
It's referencing here: https://github.com/andyli/jQueryExternForHaxe/blob/b173d859f26517ec8edc685553a81b497c84e325/js/jquery/Config.hx#L55
Have just released jQueryExtern 3.2.1 with the fix.
If you don't wanna upgrade, you can add --macro js.jquery.Config.setVersion('3.4.1') (with any jQuery version number) to your hxml to avoid the warning.
--macro js.jquery.Config.setVersion('3.4.1')
Getting:
Warning : Should be used in initialization macros only: haxe.macro.Compiler.define(jquery_ver, 30301)
after updating to Haxe 4.0.0-rc.4.It's referencing here: https://github.com/andyli/jQueryExternForHaxe/blob/b173d859f26517ec8edc685553a81b497c84e325/js/jquery/Config.hx#L55