JavaScript Import Error: Uncaught SyntaxError: Unexpected identifier

0

I have a problem importing JS files into whatever browser this is happening.

Uncaught SyntaxError: Unexpected identifier

He accuses this of importing OpenLayers files from OpenStreetMap.

The import code looks like this:

  import Feature from 'ol/Feature.js';
  import Map from 'ol/Map.js';
  import View from 'ol/View.js';
  import Polyline from 'ol/format/Polyline.js';
  import Point from 'ol/geom/Point.js';
  import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer.js';
  import BingMaps from 'ol/source/BingMaps.js';
  import VectorSource from 'ol/source/Vector.js';
  import {Circle as CircleStyle, Fill, Icon, Stroke, Style} from 'ol/style.js';

What could be causing this?

    
asked by anonymous 17.09.2018 / 16:01

0 answers