[Pas2js] Pas2JS_Widget woes
Michael Van Canneyt
michael at freepascal.org
Tue Jul 19 10:48:28 CEST 2022
On Tue, 19 Jul 2022, Luca Olivetti wrote:
> El 18/7/22 a les 23:10, Sven Barth via Pas2js ha escrit:
>
>>> What am I doing wrong?
>>
>> Would you please make sure that your project has a dependency on the WCL
>> package, but not on the LCL (or the FCL) package?
>
> The only dependencies are WCL and pas2js_rtl.
>
> I managed to compile the project with
>
> pas2js -Tbrowser -Fu'/home/luca/pas2js-linux/Pas2JS_Widget/*' project1.lpr
>
>
> (once corrected the error here:
> https://forum.lazarus.freepascal.org/index.php/topic,59272.0.html)
>
> though when I open project1.html the browser console complains "Uncaught
> reference: rtl is not defined"
Add -Jirtl.js to the options:
pas2js -Jirtl.js -Tbrowser -Fu'/home/luca/pas2js-linux/Pas2JS_Widget/*' project1.lpr
(normally you can see this option in the custom compiler options of your project)
Michael.
More information about the Pas2js
mailing list