[Pas2js] Pas2JS_Widget woes
Sven Barth
pascaldragon at googlemail.com
Mon Jul 18 23:10:28 CEST 2022
Am 18.07.2022 um 12:46 schrieb Luca Olivetti:
> Hello,
>
> I'm trying to follow the instructions here
>
> https://github.com/pascaldragon/Pas2JS_Widget
>
> I'm currently using lazarus 2.2.2 and I downloaded the 2.2.0 zip of
> pas2js (for linux), I have the Pas2HSDsgn 1.0.2 package installed and
> I set the pas2js options so that they point to the 2.2.0 pas2js and
> compileserver.
>
>
> the instructions say:
>
> 1 - make sure that the pas2jsdsgn package is installed - done
> 2 - the pas2js_rtl package should have been opened (so that the IDE
> knows about it) - done
> 3 - install the wcldsgn package from design/package - done
> 4 - open the wcl package in widgets (again so that the IDE knows about
> it) - done
>
> I then created a new "Web GUI Application", Run->Compile but I get
>
>
> Error: can't find unit "Interfaces"
>
> This is the automatically generated project source
>
>
> program Project1;
>
> {$mode delphi}{$H+}
>
> uses
> Interfaces, Forms, unit1;
>
> {$R *.res}
>
> begin
> Application.Initialize;
> Application.CreateForm(TWForm1, WForm1);
> Application.Run;
> end.
>
>
> If I comment out the Interfaces, the next error is on Forms, and so
> on, and so forth.
> Funnily enough, lazarus can find all those units.
>
> 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?
Regards,
Sven
More information about the Pas2js
mailing list