You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to build the client-run I get this error:
$ npm run build
> client-run@0.1.0 build /home/bherr/workspaces/aisl/xmacroscope/packages/client-run
> node scripts/build.js
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/pretty-ms/index.js:4
Read more here: http://bit.ly/2tRViJ9
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client-run@0.1.0 build: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client-run@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
pretty-ms is focused on the Node environment and not web JS. As a result it seems like it doesn't support transpiling within our ES6 project very well. We're only using it to convert milliseconds to human readable format for the Timer component. That component is only displaying the timer conditionally. In its current usage, we don't need to display it on any of the exhibit screens. So for now I'm just going to remove this module to address this issue.
Pretty-ms is used to clean up Milliseconds display. It's causing build
problems (#231) with our build process and we're not currently using it,
so I'm removing it from the Timer component.
When trying to build the client-run I get this error:
I believe its related to this: sindresorhus/pretty-ms#31
This is important to fix asap as I am building the server to deploy here.
The text was updated successfully, but these errors were encountered: