Uncaught Error: Enum not found openfl.display.LineScaleMode

When I target html5, I get this error when loading the compiled project in browser:

Uncaught Error: Enum not found openfl.display.LineScaleMode

My haxelibs:

actuate: [1.8.6]
assetsmanager: [1.2.0]
box2d: [1.2.3]
cereal: [0.0.4]
extension-nativedialog: 1.2.1 [1.2.2]
format: [3.2.1]
hscript: 2.0.4 2.0.5 [2.0.7]
hxcpp: 3.2.180 3.2.205 [3.3.49]
layout: [1.2.1]
lime: 2.8.1 2.9.0 [2.9.1]
mlib: [2.0.2]
msignal: 1.2.2 [1.2.4]
openfl-samples: [3.3.1]
openfl: 3.6.0 [3.6.1]
rox-i18n: [1.0.0]
stablexui: [1.1.5]
svg: 1.0.8 [1.0.9]
swf: 2.1.0 [2.2.0]
systools: [1.1.0]
tjson: [1.4.0]

That error would happen only when I have swfs in xml build file:

<library path="assets-swfs/led.swf" preload="true" generate="true"/>
<library path="assets-swfs/library.swf" preload="true" generate="true"/>

I though that there restrictions on colors of filters used in swf files, but I also tried to load the library.swf file of openfl \demos\NyanCat\Assets, and I got the same error…

Any idea?

What kind of build are you doing: debug, release, final?

I am building a debug build, I also build a release, I get the same error:

Uncaught Error: Enum not found openfl.display.LineScaleMode

Does the NyanCat sample works for you?

If it does, can it load your swf?

NyanCat sample would not compile to html5:

Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe “H:\repositories\NyanCat\NyanCat.hxproj” -ipc 1e74a82f-f324-4b92-82a9-142bcb45d40b -version “3.2.1” -compiler “C:\HaxeToolkit\haxe” -library “C:\Program Files (x86)\FlashDevelop\Library” -target "html5"
Building NyanCat
Running Pre-Build Command Line…
cmd: “C:\HaxeToolkit\haxe/haxelib” run lime build “project.xml” html5 -debug -Dfdb
Warning: Could not find template file: html5/template
Warning: Could not find template file: haxe
Warning: Could not find template file: html5/hxml
Type not found : format.swf.lite.SWFLiteLibrary
Build halted with errors.
Done(1)

But my project compiles to html5 successfully

Does this work any differently from the command-line? The “could not find template file” warnings is a bad sign – like Lime or OpenFL aren’t included?