[Pas2js] Pas2JS_Widget woes
Michael Van Canneyt
michael at freepascal.org
Thu Jul 21 21:38:05 CEST 2022
On Thu, 21 Jul 2022, Luca Olivetti wrote:
> El 19/7/22 a les 10:48, Michael Van Canneyt ha escrit:
>>
>>
>> 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
>
>
> Now no error in the console but I get this messagebox
>
> Uncaught exception of type EResNotFound:
>
> Form resource TWForm1 not found. For resourceless forms CreateNew constructor
> must be used.
>>
>> (normally you can see this option in the custom compiler options of your
>> project)
>
> I wonder why when I create a new "Web GUI Application (Pas2JS)" lazarus
> cannot compile the project (the custom compiler options are "
> -Jeutf-8 -Jirtl.js -Jc -Jminclude -JRjs").
Because it attempts to compile the dependencies of your project, and that fails.
Michael.
More information about the Pas2js
mailing list