-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Uncaught SyntaxError: import declarations may only appear at top level of a module #241
Comments
Hey there @totpero Please provide a reproduction. |
I have a very similar one Uncaught SyntaxError: Cannot use import statement outside a module (at ol-contextmenu.js:11:1) |
Hopefully solved in |
Hi @jonataswalker ,
|
I'm not able to help without a reproduction. |
Hi @jonataswalker, |
In Mozilla Firefox console I get this error:
Uncaught SyntaxError: import declarations may only appear at top level of a module "ol-contextmenu.js:11"
Using last release v5.1.0 at line 11
This line:
import T from "ol/control/Control";
The text was updated successfully, but these errors were encountered: