FIXED: TiNG index.html Not Created During Build

Forum to discuss the new web client version of Servoy.

FIXED: TiNG index.html Not Created During Build

Postby kwpsd » Sun Jan 15, 2023 12:40 am

Servoy TiNG Version: 2022.9.2.3805

I create a new workspace and import a solution. Developer goes through the process of building the solution but ultimately fails with the following console message:

'ng' is not recognized as an internal or external command


Developer shows the following information:

Message The requested resource [/solution/ARMTITAN/index.html] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


I verified that the index.html files does not exist in the following path:

C:\Users\...\servoy_workspace\.metadata\.plugins\com.servoy.eclipse.ngclient.ui\target\ARMTITAN


No errors in servoy_log.txt or in the .metadata .log file.

Any ideas as to what would prevent the index.html from being created and why 'ng' is not recognized as a valid command? ...and, why there are no errors reported?
Last edited by kwpsd on Tue Jan 17, 2023 11:31 pm, edited 1 time in total.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: TiNG index.html Not Created During Build

Postby jcompagner » Mon Jan 16, 2023 10:59 am

then something is really not installed correctly in the dir.
Not sure why that sometimes just doesn't work for some.

What you can do is in the context menu of the Web Packages -> copy titanium ng resources and then choose for the "clean" option

"ng" should just be there, that should be installed. that is "angular/cli" npm package.

so i do wonder if nothing before that in the log goes wrong, but for that we have to see the full log of the Titanium NG Build Console
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: TiNG index.html Not Created During Build

Postby kwpsd » Mon Jan 16, 2023 10:06 pm

Johan..the log files were sent to your e-mail account.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

FIXED: TiNG index.html Not Created During Build

Postby kwpsd » Tue Jan 17, 2023 11:30 pm

Posting the information below for others who may be having this issue.

Johan,

Not sure why that sometimes just doesn't work for some.


I figured out why the index.html file is not being created.

Apparently, during the build process, npm is attempting to connect to some Angular server, and if the connection fails, the index.html file is not created resulting in the following message:

'ng' is not recognized as an internal or external command


In our case, our network firewall was preventing the connection. npm was attempting to connect to:

registry.npmjs.org on port 443


If you look up the IP address for this domain, you will get the following:

Code: Select all
104.16.16.35
104.16.17.35
104.16.18.35
104.16.19.35
104.16.20.35
104.16.21.35
104.16.22.35
104.16.23.35
104.16.24.35
104.16.25.35
104.16.26.35
104.16.27.35


We allowed these IP addresses through our firewall, and npm would then run to completion.

I hope this helps!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: FIXED: TiNG index.html Not Created During Build

Postby jcompagner » Wed Jan 18, 2023 2:05 pm

kwpsd wrote:
Apparently, during the build process, npm is attempting to connect to some Angular server, and if the connection fails, the index.html file is not created resulting in the following message:


no it is not the an angular server that we want to connect to
but just to the npm registry to get all the npm packages, not just angular but a lot of other packages like the stuff we build on top of (datepicker, bootstrap, fontawesome)

and yes for TiNG that is very important that that works, those downloads should not be blocked.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: FIXED: TiNG index.html Not Created During Build

Postby kwpsd » Wed Jan 18, 2023 7:40 pm

Ah, I see...thanks for the better explanation.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 9 guests