Nothing was returned from render when trying to use any graphics wrapped in an Entity
See original GitHub issueWhen 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:
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:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v1.13.1 has been released! Try it!
Wow, thank you! Very much appreciated 😃