Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

[AIR SDK 51.0.0.2] ReferenceError: Error #1069: Property declaration not found on builtin.as$0.MethodClosure and there is no default value.

Open ylazy opened this issue 1 year ago • 5 comments

Hi! I've tested the new property declaration with a Function class instance, and it didn't worked.

Please view this video for more detail:

https://github.com/airsdk/Adobe-Runtime-Support/assets/6010183/fe998ab5-1f77-4852-8932-c57a1a7a96b7

Thanks!

ylazy avatar Feb 24 '24 20:02 ylazy

@ylazy, try this fix https://github.com/airsdk/Adobe-Runtime-Support/issues/3084 and in asconfig.json file be sure you set up "swf-version": 51

itlancer avatar Feb 24 '24 20:02 itlancer

@ylazy, try this fix #3084 and in asconfig.json file be sure you set up "swf-version": 51

Yeah I did follow your instruction to fix airsdk.xml. So you can see the correct airsdk in the bottom right: image

Thanks!

ylazy avatar Feb 24 '24 20:02 ylazy

For me declaration (and other AIR 51 features) works fine if you also set up "swf-version": 51 in asconfig.json in compilerOptions section.

itlancer avatar Feb 24 '24 20:02 itlancer

For me declaration (and other AIR 51 features) works fine if you also set up "swf-version": 51 in asconfig.json in compilerOptions section.

It worked. Thank you so much!

https://github.com/airsdk/Adobe-Runtime-Support/assets/6010183/d6821c2e-649d-4b17-8872-29768df8dc25

ylazy avatar Feb 24 '24 21:02 ylazy

Thanks, so yes it looks like the automatic update of the SWF version didn't work. Will get this sorted out, the idea being there's a default value set in the air-config.xml file which should be used unless you override it. (But that doesn't work by itself unless we also update the compiler...)

ajwfrost avatar Feb 26 '24 16:02 ajwfrost