Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
dcrouch
New Contributor II

Angular v13+ application with SSL VPN

In short, angular v12 applications work but angular v13, v14 & v15 do not.

 

The specific error in the console I am getting is:

 

Uncaught SyntaxError: Unexpected token '.' (at main.02a2f3bc139482b4.js:1:2038)

 

On line 2038 I notice this function:

setTimeout(fgt_sslvpn.eval_rewrite(handler), timeout, ...args)

If served locally the same line is:

setTimeout(handler, timeout, ...args)

 

So it seems something is failing with the fgt_sslvpn.eval_rewrite function.

 

I've tried turning off Ahead-of-time (AOT) compilation and other angular compiler options but to no avail.

 

Fortigate hardware and firmware versions:

FGT60E

- v5.6.9 build1673 (GA)

 

Is there any setting in Fortigate or some other method of fixing this? Will upgrading the firmware help?

6 REPLIES 6
Anthony_E
Community Manager
Community Manager

Hello dcrouch,

 

Thank you for using the Community Forum.

I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.


Regards,

Anthony-Fortinet Community Team.
dcrouch
New Contributor II

We are going to upgrade firmware so hopefully that fixes the issue. Will post an update once  its done.

Anthony_E
Community Manager
Community Manager

Thank you!

Anthony-Fortinet Community Team.
dcrouch
New Contributor II

Quick update,

 

So far we've managed to upgrade the firmware to version 6.0.11 but it's made it worse unfortunately. Apps using Angular v12 are now also broken, but with a different error `this.to_array` is not a function:

 

dcrouch_0-1671439080885.png

Angular v13+ has the same error as before `unexpected token '.':`

dcrouch_1-1671439183145.png

 

Hopefully going up further firmware versions will help.

dcrouch
New Contributor II

We finally managed to upgrade the firmware all the way to v7.2.3 build1262

 

Angular 12 apps now work again and so now do version 13 apps which is good.

 

However, angular 14 and 15 apps are now generating this error message in the browser console:

 

Uncaught SyntaxError: missing ) after argument list (at main.ac22e605ec7674eb.js:1:167830)

 

I'm using the default angular app (in production mode) to test by the way.

Anthony_E
Community Manager
Community Manager

Thank you for sharing these informations!

Anthony-Fortinet Community Team.
Labels
Top Kudoed Authors