Dear Community,
- I have copied and pasted the code at this link (an official Cesium site) into VS Code
- I have attempted to run the code under VS Code’s “Run and Debug”
- In Chrome, what I see are the 3D buildings and a starry sky but the globe and terrain are not rendered
- The following errors are produced on the console log:
- Cesium.js:16371 Uncaught TypeError: Cannot read properties of null (reading ‘createElement’)
(anonymous) @ Cesium.js:16371
test.html:1 Refused to cross-origin redirects of the top-level worker script.
test.html:1 Refused to cross-origin redirects of the top-level worker script.
- Cesium.js:16371 Uncaught TypeError: Cannot read properties of null (reading ‘createElement’)
- The following error is shown in the VS Code Debug Console:
- Uncaught Error
at (cesium.com/downloads/cesiumjs/releases/1.134/Build/Cesium/Cesium.js:16371:3387)
- Uncaught Error
I have only done a “Copy and Paste” and have not added anything to the code as shown on the Cesium page.
Can someone tell me what I’m missing?
Thank you,
Clyde