I need to import things from OpenLayers-5 into my NodeJS application so that I can show the WMS-layers I made with GeoServer.
It seems that there is no way around NodeJS with Express if I want to make a working weather application that can handle user-input with OpenLayers-5.
The problem is that NodeJS does not do a simple:
import Map from 'ol/Map';
I have a index.html, a server.js and a client.js file.
I think I should do the import in the client.js file. I have tried doing it with node --experimental-modules '...'.mjs. That did not seem to work.
How should I do this?