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.

Nothing was returned from render when trying to use any graphics wrapped in an Entity

See original GitHub issue

When I pass “point” to Entity, I can get a circular point rendering on the globe as expected, but as soon as I wrap any Graphic component with Entity, the app crashes with this error:

image

All the code is on the same level, and there isn’t any custom data.

import React, { useState, useEffect } from "react";
import { hot } from "react-hot-loader/root";
import { Cartesian3, Color } from "cesium";
import { Viewer, Entity, BoxGraphics } from "resium";

import "./App.css";

function App() {
  return (
    <Viewer full>
      <Entity
        name="BoxGraphics"
        description="BoxGraphics!!"
        position={Cartesian3.fromDegrees(0, 0, 0)}
      >
        <BoxGraphics
          material={Color.RED}
          dimensions={new Cartesian3(400000.0, 300000.0, 500000.0)}
        />
      </Entity>
    </Viewer>
  );
}

export default hot(App);


Has anyone encountered this bug before, and can refer to me to any resources that might be of help? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rot1024commented, Sep 30, 2020

v1.13.1 has been released! Try it!

0reactions
jabusircommented, Sep 30, 2020

Wow, thank you! Very much appreciated 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nothing was returned from render Error in React [Solved]
The "Nothing was returned from render" React error occurs when we forget to explicitly return a value from a function or class component....
Read more >
"Nothing was returned from render." ReactJS Error - Owen Conti
Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
Read more >
Nothing was returned from render. This usually means a ...
Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null [closed] ; import React ......
Read more >
Nothing was returned from render error while trying to ... - GitHub
I am trying to implement the basic counter using React but getting the below error invariant.js:42 Uncaught Error: p(...): Nothing was ...
Read more >
Nothing was returned from render error in react - YouTube
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
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