Cesium Quickstart, can't load JS in HTML


I’m really new to CesiumJS and am trying to go through the quick start exercise and running into several problems. I have the cesium package saved locally in my working directory and on step 2 of the guide where we try to setup the CesiumJS client I copied over the section of code from the “Install with NPM” section but I seem to not be able to run the client from my HTML file. I set the base CESIUM_BASE_URL to the directory containing the 4 other directories as instructed, assigned the path to the widgets.css file to the one now stored locally on my workspace, and applied my access token. I find that when I call the js file from my html file as a script and open said html file nothing appears in it. What could I be doing wrong? Thank you.

Hi there,

The quickstart guide does not actually cover the case where there’s already a local version of CesiumJS.

I would recommend following the code example for Import from CDN instead of Install from NPM. Replace


with the path to the CesiumJS directory, relative to your HTML.

It looks like the quickstart guide is not completely accurate. cesium 1.109 release is not working for me either.

Add the following to the script tag and remember to add the access token.

 <script src="https://cdnjs.cloudflare.com/ajax/libs/cesium/1.108.0/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.109/Build/Cesium/Widgets/widgets.css" rel="stylesheet">

I found the quickstart guide to be a bit confusing, I ended up spending a lot of time on setting up Cesium (using both CDN and npm) instead of focusing on the API documentation and other features.

A humble suggestion to Cesium. Please rewrite the quick start so it easy for beginners. A would also recommend that you explain more on npm installation. Maybe a video tutorial would be helpful.