-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web_gui build is broken #1039
Comments
It looks like running webpack directly works because the failing uglify js is only called when
|
I think it would make a lot of sense to add a CI check that ensures |
Currently the node version needs to be downgraded to 9 in order to successfully build. #1024 might help with that, I will take a look. |
As pointed out in #1036, the web_gui does not currently build.
The web gui dependencies really should get some attention, they are severely outdated.
One big item is
node-sass
, which is pinned at 4.8.3:openhtf/openhtf/output/web_gui/package.json
Line 73 in e724173
Node-sass 4.8.3 supports only up to Node 9 (https://github.com/sass/node-sass/releases/tag/v4.8.3), and indeed building it during
npm install
will fail with a newer Node. Luckily it's easy to switch node versions withn
However even with node-sass built, the web gui is broken on master.
npm run build
fails with:The SafeHtml error is easily fixed by cherry-picking #1035
The Uglify.js error is a little harder. The problem seems to be that it does not support ES6 (https://stackoverflow.com/a/59156371/5559867), which is curious because tsc will still compile to ES5:
openhtf/openhtf/output/web_gui/tsconfig.json
Line 3 in e724173
It turns out that
seems to work, while
npm run build
(which should invoke the same, see below) fails.openhtf/openhtf/output/web_gui/package.json
Line 5 in e724173
There are a few more problems with the scripts in the package.json.
E.g. there is some protractor e2e stuff, but no protractor config file, so this won't work.
Same with
karma
, at firstnpm run test
will complain aboutRemember, we have to use Node 9 for node-sass. But anyways, let's temporarily upgrade to Node 10. Karma starts:
And immediately fails with
which happens because it turns out there is no karma config file either.
In a nutshell, the state of the webinterface build is a mess and really needs some love.
The text was updated successfully, but these errors were encountered: