cd Volumio2-UI
npm install
gulp serve --theme="volumio"
The above currently breaks the Volumio2-UI installation. The build completes without reporting any problems, but the browser that is opened displays only a gray screen.
A quick way to check if you’re affected by this problem is to look up ./src/app/ngConstants.js. If it exists, you’ve got a different/additional problem. If it’s missing, and instead you find the file ‘./src/app/volumio.constants.js’, then you’ve got a version of gulp-ng-constants which is incompatible with Volumio2-UI.
To quickly get back to a running state, Modify package.json as follows;
Replace this: “gulp-ng-constant”: “^1.1.0”,
With this: “gulp-ng-constant”: “1.1.0”,
and then:
npm install
gulp serve --theme="volumio"
While this doesn’t really fix the problem, it at least avoids it until someone can analyze the breaking changes in the gulp-ng-constants package and really fix the issue.
Could you possibly explain a bit more? I have an ngConstants.js file, I got back the right version of gulp-ng-constant (1.1.0), it hasn’t fixed the problem.
Never mind, I worked it out, I think. So the old version of of the module wasn’t respecting the .name parameter, so was still writing to the ngConstants.js file. Renaming ngConstants.js to volumio.constant.js is a temporary fix, but it’s not going to pick up any changes you make in gulp/scripts.js.
As stated in the first post, if you have the ngConstants.js file, then the problem described here isn’t the same as the problem you have (or had), even if the symptom (gray screen) is identical.
That ^1.2.0 fixes anything seems strange to me, because both ^1.2.0 and ^1.1.0 should install the same version of gulp-ng-constant (currently 1.2.0).