ES6 syntax in openLiteSpeed

#1
Hello

I just installed a ubuntu 22.04 Server on a Hostinger VPS with Node and OpenLiteSpeed.

The node test page is working fine with my domain in https. However, as soon as i switch this little test to ES6 syntax, nothing works.

I switched require to import properly and added "type":"module" in package.json.

The node is starting without any error message, but the page timeout...

Anyone encountered this before? Any idea how to solve this? Is OpenLiteSpeed compatible with ES6 syntax?

Regards
 
Top