File to import not found or unreadable: ../bootstrap/scss/_functions
mxmtsk opened this issue · 1 comments
mxmtsk commented
Out of nowhere my deploy script fails with this error:
remote: ERROR in ./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js?{"bootstrapVersion":4,"preBootstrapCustomizations":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/src/theme/_variables.scss","bootstrapCustomizations":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/src/theme/bootstrap.overrides.scss","appStyles":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/src/theme/index.scss","extractStyles":false,"styleLoaders":["isomorphic-style","css","sass"],"styles":["mixins","normalize","reboot","type","images","grid","tables","forms","buttons","animation","dropdown","button-group","input-group","custom-forms","nav","navbar","card","pagination","pager","labels","alert","progress","responsive-embed","utilities","utilities-background","utilities-spacing","utilities-responsive"],"scripts":false,"configFilePath":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/.bootstraprc","bootstrapPath":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js
remote: Module build failed:
remote: undefined
remote: ^
remote: File to import not found or unreadable: ../bootstrap/scss/_functions.
remote: Parent style sheet: stdin
remote: in /tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/node_modules/bootstrap-loader/no-op.js (line 3, column 1)
remote: @ ./~/isomorphic-style-loader/lib!./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js?{"bootstrapVersion":4,"preBootstrapCustomizations":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/src/theme/_variables.scss","bootstrapCustomizations":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/src/theme/bootstrap.overrides.scss","appStyles":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/src/theme/index.scss","extractStyles":false,"styleLoaders":["isomorphic-style","css","sass"],"styles":["mixins","normalize","reboot","type","images","grid","tables","forms","buttons","animation","dropdown","button-group","input-group","custom-forms","nav","navbar","card","pagination","pager","labels","alert","progress","responsive-embed","utilities","utilities-background","utilities-spacing","utilities-responsive"],"scripts":false,"configFilePath":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/.bootstraprc","bootstrapPath":"/tmp/build_113ebbb33fe945bf604e6e4a9d3ddede/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js 2:18-1174
On my local machine it still runs fine. I'm using the following versions:
"bootstrap": "4.0.0-alpha.2",
"bootstrap-loader": "^2.0.0-beta.12",
They have added a _functions file to bootstrap, but why is it trying to load it even though I'm referencing a much older bootstrap version?
mxmtsk commented
Oh well, nvm. Fixed it by setting the bootstrap-loader version to use the beta.12 fixed.
"bootstrap-loader": "^2.0.0-beta.12",