Open PabloBitGenoma opened 1 year ago
Found the bug.
Importing like this triggers the error:
import { Cluster, Vector as VectorSource } from 'ol/source';
import { Tile as TileLayer, Vector as VectorLayer } from 'ol/layer';
Importing as below solves it:
import TileLayer from 'ol/layer/Tile';
import VectorLayer from 'ol/layer/Vector';
import Cluster from 'ol/source/Cluster';
import VectorSource from 'ol/source/Vector';
@PabloBitGenoma still facing the issue
Experiencing a very similar issue on a pretty large project, did you ever pinpoint what the specific cause was from OpenLayers?
I ended up using this:
import * as GeoTIFF from 'geotiff/dist-browser/geotiff'
resolved my issue somehow.
Same issue. I worked around it by requiring "@petamoriken/float16": "3.4.7" in my package.json. Seems to be related to a newer release of float16.
I'm worknig with OpenLayers to draw a map and this error came to prevent my app to build.
Rollup: Missing Export: ./node_modules/geotiff/dist-module/geotiffimage.js:2:9 'getFloat16' is not exported by ./node_modules/@petamoriken/float16/browser/float16.js, imported by ./node_modules/geotiff/dist-module/geotiffimage.js
Everything seems ok (all dependencies installed & versions checked) but for some reason npm can't find the exported function getFloat16 required in /node_modules/geotiff/dist-module/geotiffimage.js