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

Help loader problem #1101

Open
luca-moscatelli opened this issue Sep 5, 2023 · 3 comments
Open

Help loader problem #1101

luca-moscatelli opened this issue Sep 5, 2023 · 3 comments

Comments

@luca-moscatelli
Copy link

HELP i load the module and i use : const ol3d = new OLCesium({ map: map }); // ol2dMap is the ol.Map instance
ol3d.setEnabled(true); but the complier give me this error :

./node_modules/olcs/OLCesium.js 51:18
Module parse failed: Unexpected token (51:18)
File was processed with these loaders:

  • ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | */
    | class OLCesium {

autoRenderLoop_ = null;
| map_;
| time_;

@trinizz84
Copy link

I am experiencing this same issue when updating from v2.14 to the latest(v2.16).

@gberaudo
Copy link
Member

gberaudo commented Nov 2, 2023

Hi @luca-moscatelli and @trinizz84 , maybe that was caused by some typescript files being present in some OL-Cesium release. Could you try with the latest release?

@ZakarFin
Copy link

Ran into this issue with olcs 2.15.2 on oskariorg/oskari-frontend#2406. Someone suggested to try the ol-cesium package instead (#1094 (comment)), but this says it will be removed in the future: #1096. Just changing it to ol-cesium seemed to fix this problem, but gave some new ones from cesium :)

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

4 participants