Bug in BuildApps starting from 1.20?

Hi cesium forum,
I have successfully built my cesium application following the build guide (https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Documentation/Contributors/BuildGuide/README.md) until some days ago. Then I upgraded to the last github cesium version and my Apps is no longer usable.
I have tried to build the default Cesium Viewer Application and the same error is thrown out by the Web Console.
Error: Script error for: CesiumViewerStartup
http://requirejs.org/docs/errors.html#scripterror
Apparently CesiumViewer.css and CesiumViewerStartup.js are no longer copied to the Build/Apps/CesiumViewer directory.

Cesium behavior has changed between releases 1.19 and 1.20

Is that supposed to happen? I have to run some new command to have Apps working?

Thanks for any help!
Chiara

Hello Chiara,

Did you pull the latest code from GitHub? I tried to reproduce this is master and found that everything worked correctly.

Best,

Hannah

Hello Hannah,

my problem came up after a run clean…

Today I have started from the beginning

git clone https://github.com/AnalyticalGraphicsInc/cesium.git cesium-agi ... cd cesium-agi/
npm install ... npm run build

npm run minify ... npm run buildApps

$ ls Build/Apps/CesiumViewer/
Assets favicon.ico Images index.html require.js web.config Widgets

``

CesiumViewerStartup.js is not in the Apps directory…
If I run “npm start” the built version give me the error

Error: Script error for: CesiumViewerStartup
http://requirejs.org/docs/errors.html#scripterror

Am I missing some step?
Best,
Chiara

Hi Chiara,

Hmm, very weird. I just ran through the exact same steps that you posted and got this:

$ ls Build/Apps/CesiumViewer/
Assets/ favicon.ico require.js Widgets/
CesiumViewer.css Images/ ThirdParty/ Workers/
CesiumViewerStartup.js index.html web.config

``

What OS do you have?

-Hannah

Oh also, what version of node do you have? Using an old version of node could cause problems too. We recommend using 4.0 or later.

-Hannah

Hello Hannah,

I’m on Fedora22, with node installed via fedora repo.
I have uninstalled the repo version and installed the 4.4.5 version from https://nodejs.org/

That fixes the problem!

Thanks a lot for your help and your time!
Best,
Chiara