Recent

Author Topic: Web GUI Application with Pas2JS needs WCL package error  (Read 2060 times)

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Web GUI Application with Pas2JS needs WCL package error
« on: March 23, 2026, 01:51:31 pm »
I have installed pas2js-rtl and pas2js-ws using the  FPCUPDeluxe 'Modules' tab.  I create a new project with "Web GUI Application (pas2js)".  I add a button to the form.  I compile and get a broken dependency error  "The project requires the package "WCL" but it was not found.  The WCL components are available in the IDE. 

There is no package named "WCL" in the package manager or the online package manager that I could find.

I am using Lazarus 4.99 and FPC 3.2.2

Suggestions ?





Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: Web GUI Application with Pas2JS needs WCL package error
« Reply #2 on: March 23, 2026, 04:50:50 pm »
Thank you!  That fixes that issue.


Now, when starting a new project with blank Web GUI project and no widgets,  upon compiling  I get an error : 

Code: Pascal  [Select][+][-]
  1. dialogs.pas(507,32) Error: Incompatible type arg no. 2: Got "open array", expected "array of const"
  2.  

I would think this would just make a bare-bones webpage that I could run in a browser. Is this because of 4.99 ?  Or some other mistake that I'm making ?

rca

  • Full Member
  • ***
  • Posts: 124
Re: Web GUI Application with Pas2JS needs WCL package error
« Reply #3 on: March 23, 2026, 05:33:03 pm »
Thank you!  That fixes that issue.


Now, when starting a new project with blank Web GUI project and no widgets,  upon compiling  I get an error : 

Code: Pascal  [Select][+][-]
  1. dialogs.pas(507,32) Error: Incompatible type arg no. 2: Got "open array", expected "array of const"
  2.  

I would think this would just make a bare-bones webpage that I could run in a browser. Is this because of 4.99 ?  Or some other mistake that I'm making ?

Look at:
https://github.com/pascaldragon/Pas2JS_Widget/issues/27

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: Web GUI Application with Pas2JS needs WCL package error
« Reply #4 on: March 24, 2026, 03:02:19 pm »
That helped.  Now when I make a new WebGUI app, I drag a WCL button onto the form and compile it. I open the project in the brower, and the button takes up the whole page.  Other components also seem to take the whole page, and seem to partially work in Chromium, but not Firefox.

Is WebGUI for lazarus still in developmet and not complete ?   Or am I not doing something right ?

What would be the best solution to make a simple RAD  HTML form type app with Lazarus ?   Another Framework ?   


rca

  • Full Member
  • ***
  • Posts: 124
Re: Web GUI Application with Pas2JS needs WCL package error
« Reply #5 on: March 24, 2026, 04:14:59 pm »
In the second post I gave you a link on how to use it, please read it; it explains that visually all the widgets are broken and how to fix it.


Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: Web GUI Application with Pas2JS needs WCL package error
« Reply #7 on: March 28, 2026, 04:09:53 pm »
In the second post I gave you a link on how to use it, please read it; it explains that visually all the widgets are broken and how to fix it.

Thank you for your responses.  I will have to check into this later. 

 

TinyPortal © 2005-2018