define is not defined in Cesium.js

1,649 views
Skip to first unread message

micu.cl...@gmail.com

unread,
Dec 29, 2014, 4:02:53 AM12/29/14
to cesiu...@googlegroups.com
Hello,

I have two errors ....

Uncaught ReferenceError: define is not defined (in Cesium line 2)

and when i try to call the viwer ... i get this error:
init.js:1 Uncaught ReferenceError: Cesium is not defined


How can i resolv this ?

Matthew Amato

unread,
Dec 29, 2014, 9:49:16 AM12/29/14
to cesiu...@googlegroups.com
It's hard to say from the information you provided, but I would check out the Getting Started tutorial which will hopefully help you resolve your issue: http://cesiumjs.org/2013/04/12/Cesium-up-and-running/


--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

blakep...@gmail.com

unread,
Apr 23, 2015, 11:17:23 AM4/23/15
to cesiu...@googlegroups.com, micu.cl...@gmail.com
I'm getting the same error when updating Cesium. This error came up when I upgraded to cesium 1.8 from an older version of cesium. My issue is likely very specific, I'll update this thread when I find a solution.

blakep...@gmail.com

unread,
Apr 23, 2015, 11:35:14 AM4/23/15
to cesiu...@googlegroups.com, blakep...@gmail.com, micu.cl...@gmail.com
I fixed the issue by using the files found in the Build/Cesium folder rather than the the files from the Source folder.

Shirly Ben Porat

unread,
Sep 25, 2016, 6:03:13 AM9/25/16
to cesium-dev
Hi, can u be more specific?

Chris M.

unread,
Sep 26, 2016, 9:58:40 AM9/26/16
to cesium-dev
When you're loading Cesium into your html as a script you want to reference the file found at in the folder "build/Cesium/Cesium.js" not "source/Cesium.js".

If you downloaded straight from their Github page you need to build it yourself, or download it from the blogpost on their website which comes pre-built. 
Reply all
Reply to author
Forward
0 new messages