DataBiosphere / data-explorer

BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

Fix GAE deployment with Vega dep #269

Closed bfcrampton closed 5 years ago

melissachang commented 5 years ago

For posterity, I was seeing this error before this PR:

Step 8/12 : COPY . /ui
 ---> 804f8ddcc1e3
Step 9/12 : RUN npm run build
 ---> Running in 5c1bbfb9c93d

> data-explorer@0.1.0 build /ui
> react-scripts build
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file: 

    ./node_modules/vega-lite/build/src/util.js:14 

Read more here: http://bit.ly/2tRViJ9

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! data-explorer@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the data-explorer@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-05T21_04_32_648Z-debug.log
The command '/bin/sh -c npm run build' returned a non-zero code: 1
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: exit status 1

--------------------------------------------------------------------------------

ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/gcr/builds/5636b145-4893-4f21-ba3f-fd268c6cc68f?project=871492910572 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details