question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use cesium error,

See original GitHub issue

error in ./node_modules/_cesium@1.61.0@cesium/index.js

Module parse failed: 'return' outside of function (9:4)
You may need an appropriate loader to handle this file type.
| if (process.env.NODE_ENV === 'production') {
|     module.exports = require(path.join(__dirname, 'Build/Cesium/Cesium'));
>     return;
| }
| 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sorrycccommented, Oct 22, 2019

cesium 这个包的问题,return 不能写在函数外面。

0reactions
chenshuai2144commented, Oct 22, 2019

感觉要去umi 问了。需要一个webpack 高级配置工程师

Read more comments on GitHub >

github_iconTop Results From Across the Web

handleTileFailure -> error undefined - Tile is unloaded ...
I'm now receiving a large stack trace, the main error shown below: Unhandled Promise rejection: Cannot read ... Use Cesium3DTileset.
Read more >
Error using cesium in Node 12 or 13 · Issue #8452
The cesium node module does not work in Node 13 due to the upgrade to ES6 modules and a breaking change in Node....
Read more >
Error rendering 3D models (Runtime Error) Failed to load ...
I'm using this function I got it from the. createModel (url, height) {. // this.viewer.entities.removeAll();. var position = Cesium.Cartesian3.
Read more >
Error while creating a polyline in Cesium
If you delete the code from lines 259 to 265 in the EllipsoidGeodesic-0f41968b.js file, You will find that your code will run normally....
Read more >
We really need help to fix the Cesium tiled format output
I noticed that you are using default maximum screen space error = 16 in CesiumJS viewer for Metashape exports. Please note that Cesium...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found