I want to know what's mean the following error in OpenLayers
Uncaught SyntaxError: Cannot use import statement outside a module
I get this error only when I try to execute on the following example
Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Aug 24, 2021 at 20:45
-
1Don't forget about the JS bundling aspect described in the OL Getting Started doc. See this post tooJGH– JGH2021年08月25日 11:48:15 +00:00Commented Aug 25, 2021 at 11:48
1 Answer 1
You need to get basic setup like nodejs in order to run openlayers examples.
lang-js