Open nikkowolf opened 5 years ago
Hey @nikkowolf it seems there is a problem with patternfly. Try to reinstall it with npm install -f --save patternfly@^3.45.0
and then try the build command.
I had a similar issues with an ubuntu 16.04 install and I ran the patternfly@^3.45 command , then a npm run build
hunt@0.1.0 copy-img /opt/scirius/hunt cp node_modules/patternfly/dist/img/* src/img
hunt@0.1.0 build-css /opt/scirius/hunt node-sass-chokidar --include-path ./src --include-path ./node_modules --include-path ./node_modules/patternfly/node_modules/ --include-path=node_modules/patternfly/dist/sass/ --include-path=node_modules/patternfly/node_modules/bootstrap-sass/assets/stylesheets/ --include-path=node_modules/patternfly/node_modules/font-awesome-sass/assets/stylesheets/ --include-path=node_modules/react-grid-layout/css/ --include-path=node_modules/react-resizable/css/ --include-path=node_modules/patternfly-react/dist/sass/ src/ -o src/css/; mv src/css/containers/App/App.css src/css/
{
"status": 1,
"file": "node_modules/patternfly/dist/sass/_patternfly.scss",
"line": 7,
"column": 1,
"message": "File to import not found or unreadable: bootstrap/variables.",
"formatted": "Error: File to import not found or unreadable: bootstrap/variables.\n on line 7 of node_modules/patternfly/dist/sass/_patternfly.scss\n from line 46 of src/containers/App/App.scss\n>> @import \"bootstrap/variables\";\n\n ^\n"
}
mv: cannot stat 'src/css/containers/App/App.css': No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hunt@0.1.0 build-css: node-sass-chokidar --include-path ./src --include-path ./node_modules --include-path ./node_modules/patternfly/node_modules/ --include-path=node_modules/patternfly/dist/sass/ --include-path=node_modules/patternfly/node_modules/bootstrap-sass/assets/stylesheets/ --include-path=node_modules/patternfly/node_modules/font-awesome-sass/assets/stylesheets/ --include-path=node_modules/react-grid-layout/css/ --include-path=node_modules/react-resizable/css/ --include-path=node_modules/patternfly-react/dist/sass/ src/ -o src/css/; mv src/css/containers/App/App.css src/css/
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hunt@0.1.0 build-css 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-09-17T17_07_57_801Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hunt@0.1.0 build: npm run copy-fonts && npm run copy-img && npm run build-css && npm run build-js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hunt@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:
/opt/scirius/hunt# /opt/scirius/hunt/node_modules/node-sass-chokidar/bin/node-sass-chokidar --include-path ./src/containers/App/ --include-path ./node_modules --include-path ./node_modules/patternfly/node_modules/ --include-path=node_modules/patternfly/dist/sass/ --include-path=node_modules/patternfly/node_modules/bootstrap-sass/assets/stylesheets/ --include-path=node_modules/patternfly/node_modules/font-awesome-sass/assets/stylesheets/ --include-path=node_modules/react-grid-layout/css/ --include-path=node_modules/react-resizable/css/ --include-path=src --include-path=node_modules/patternfly-react/dist/sass/ src/ -o src/css/ { "status": 1, "file": "node_modules/patternfly/dist/sass/_patternfly.scss", "line": 64, "column": 1, "message": "File to import not found or unreadable: font-awesome.", "formatted": "Error: File to import not found or unreadable: font-awesome.\n on line 64 of node_modules/patternfly/dist/sass/_patternfly.scss\n from line 46 of src/containers/App/App.scss\n>> @import 'font-awesome';\n\n ^\n"
Seems its not able to import font awesome.
running the raw build-css command has references to { "status": 1, "file": "/opt/scirius/hunt/node_modules/patternfly/dist/sass/patternfly/_vertical-nav.scss", "line": 911, "column": 16, "message": "Undefined variable: \"$fa-var-arrow-circle-o-left\".", "formatted": "Error: Undefined variable: \"$fa-var-arrow-circle-o-left\".\n on line 911 of node_modules/patternfly/dist/sass/patternfly/_vertical-nav.scss\n from line 148 of node_modules/patternfly/dist/sass/_patternfly.scss\n from line 46 of src/containers/App/App.scss\n>> content: $fa-var-arrow-circle-o-left;\n\n ---------------^\n" }
deleteing the lines eventually yields a App.css file
@The-Lilleorg could you paste your package.json
and package-lock.json
? Thank you.
@The-Lilleorg could you paste your
package.json
andpackage-lock.json
? Thank you.
This is also happening to me on 18.04.3.
Had to change the extension but here's my package/lock files.
Added in my package.json and package-lock.json
New installation on ubuntu 16.04 LTS
Django version 1.11.4
/opt/scirius/hunt# npm run build
{ "status": 1, "file": "node_modules/patternfly/dist/sass/_patternfly.scss", "line": 64, "column": 1, "message": "File to import not found or unreadable: font-awesome.", "formatted": "Error: File to import not found or unreadable: font-awesome.\n on line 64 of node_modules/patternfly/dist/sass/_patternfly.scss\n from line 46 of src/containers/App/App.scss\n>> @import 'font-awesome';\n\n ^\n" } mv: cannot stat 'src/css/containers/App/App.css': No such file or directory npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! hunt@0.1.0 build-css:
node-sass-chokidar --include-path ./src --include-path ./node_modules --include-path ./node_modules/patternfly/node_modules/ --include-path=node_modules/patternfly/dist/sass/ --include-path=node_modules/patternfly/node_modules/bootstrap-sass/assets/stylesheets/ --include-path=node_modules/patternfly/node_modules/font-awesome-sass/assets/stylesheets/ --include-path=node_modules/react-grid-layout/css/ --include-path=node_modules/react-resizable/css/ --include-path=node_modules/patternfly-react/dist/sass/ src/ -o src/css/; mv src/css/containers/App/App.css src/css/
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hunt@0.1.0 build-css 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-09-05T20_42_06_878Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! hunt@0.1.0 build:
npm run copy-fonts && npm run copy-img && npm run build-css && npm run build-js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hunt@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-09-05T20_42_06_928Z-debug.log