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

Cesium is undefined - can we get ol-cesium to work with the current version of cesium? #3

Open
MichaelLangbein opened this issue Nov 5, 2019 · 0 comments

Comments

@MichaelLangbein
Copy link

A fresh clone of this repository results in an error:

Uncaught TypeError: Cannot read property 'Scene' of undefined
    at new e (cesium.js:325738)
    at Object.<anonymous> (cesium.js:305272)
    at __webpack_require__ (cesium.js:55)
    at Object.<anonymous> (cesium.js:349102)
    at __webpack_require__ (cesium.js:55)
    at webpackJsonpCallback (cesium.js:26)
    at app.js:1

This is likely because cesium has moved to ES6 modules in version 1.63.

From package-lock.json:

"cesium": {
      "version": "1.63.0",
      "resolved": "https://registry.npmjs.org/cesium/-/cesium-1.63.0.tgz",
      "integrity": "sha512-hOTw9LQsKqrNRAaIzUDfA6vqZJv+AgOpxO+xWmTCApez0S+NpVE7h/5UqcIeNOYoT0qj4UThFCt1aWm0ioCBDw==",
      "dev": true,
      "requires": {
        "esm": "^3.2.25"
      }
    },

Indeed, building the repo with cesium version 1.47 works fine.

Is there any way to get ol-cesium to work with the current version of 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

1 participant