Hi guys, first of all, thank you all for your amazing work on OpenLayers :)
Now, here comes the problem 馃槢
I'm getting the error :
Uncaught TypeError: Failed to resolve module specifier "buffer". Relative references must start with either "/", "./", or "../".
in the browser, when importing
import { WebGLPoints } from 'ol/layer.js';
in my .ts file, and bundling it with Parcel with the following options :
"type": "module",
"targets": {
"target-name": {
"outputFormat": "esmodule",
"isLibrary": true,
"optimize": false,
"includeNodeModules": true,
"source": "file-name.ts",
"distDir": "."
},
}
I think it comes from the file ol/worker/webgl.js, because it tries to use Buffer from NodeJS when Blob from the browser is not available.
Do you have any idea on how to solve this problem ?
Thanks :)
Hi guys, first of all, thank you all for your amazing work on OpenLayers :)
Now, here comes the problem 馃槢
I'm getting the error :
in the browser, when importing
in my
.tsfile, and bundling it with Parcel with the following options :I think it comes from the file
ol/worker/webgl.js, because it tries to useBufferfrom NodeJS whenBlobfrom the browser is not available.Do you have any idea on how to solve this problem ?
Thanks :)