Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import issue with source.js #1

Open
mForcella opened this issue Jul 4, 2023 · 6 comments
Open

import issue with source.js #1

mForcella opened this issue Jul 4, 2023 · 6 comments

Comments

@mForcella
Copy link

While attempting to replicate the shape drawing example here:

https://openlayers.org/en/latest/examples/draw-shapes.html

This import statement:

import {OSM, Vector as VectorSource} from 'https://cdn.skypack.dev/ol/source.js';

throws the following error:

GeoTIFF.js:4 Uncaught SyntaxError: The requested module '/-/[email protected]/dist=es2019,mode=imports/optimized/geotiff.js' does not provide an export named 'Pool' (at GeoTIFF.js:4:3)

@hornyjailfish
Copy link

have same error using deno and skypack

@geographika
Copy link

Possibly related comment: openlayers/openlayers#14152 (comment)

@hornyjailfish
Copy link

yeah if i import ol/source from esh.sh its works fine

@XiaoYang943
Copy link

true:
import OSM from 'https://cdn.skypack.dev/ol/source/OSM.js';

false:
import {OSM} from 'https://cdn.skypack.dev/ol/source.js';

error:
Uncaught SyntaxError: The requested module '/-/[email protected]/dist=es2019,mode=imports/optimized/geotiff.js' does not provide an export named 'Pool'

why?
thanks.good luck

@XiaoYang943
Copy link

true:
import XYZ from 'ol/source/XYZ.js';

false:
import {XYZ} from 'ol/source.js';

@quinn
Copy link

quinn commented Aug 30, 2024

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants