Open Lerg opened 4 months ago
Does your tlconfig.lua have this code?
return {
gen_target = "5.1",
gen_compat = "off",
include = {"**/*.tl"}
}
Does your tlconfig.lua have this code?
@vlaaad Yes
Hmm, I can reproduce the issue. Reported to cyan: https://github.com/teal-language/cyan/issues/43 The issue can also be solved with https://github.com/defold/defold/issues/8928
Teal supports requiring regular Lua file given that a special definition file is created.
For instance test.lua
Definition file test.d.tl
When invoking command line
tl
it doesn't give any errors:tl gen
also works.But when trying to build with Defold an error appears
Somehow the original Lua module (test.lua) gets treated as a Teal source which results in compilation errors
Test project: TealBug.zip