[go: up one dir, main page]

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

Reference error in ol-ext 4.0.20 #1088

Closed
asrat-77 opened this issue Jul 17, 2024 · 1 comment
Closed

Reference error in ol-ext 4.0.20 #1088

asrat-77 opened this issue Jul 17, 2024 · 1 comment
Labels

Comments

@asrat-77
Copy link

Hello,

This is the error:

ERROR in ./node_modules/ol-ext/interaction/Transform.js 15:0-44
Module not found: Error: Can't resolve '../util/element' in 'F:\React projects\xvi.ker-fakataszter\webapp\node_modules\ol-ext\interaction'
Did you mean 'element.js'?
BREAKING CHANGE: The request '../util/element' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

I fixed the error like this:
in node_modules/ol-ext/interaction/Transform.js

I replaced this line:
import ol_ext_element from '../util/element'
with this one:
import ol_ext_element from '../util/element.js'

Best regards,
Asrat

Viglino added a commit that referenced this issue Jul 17, 2024
@Viglino
Copy link
Owner
Viglino commented Jul 17, 2024

It seems there is still some file extension was missing #1085
Fixed in the last comit

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

No branches or pull requests

2 participants