Ngx-admin: Builds are failing

Created on 19 Feb 2017  路  8Comments  路  Source: akveo/ngx-admin

  • I'm submitting a ...
    [ ] bug report

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
    You can check also travis in this repo shows build fails same error for me

  • What is the expected behavior?
    To build

  • Please tell us about your environment:
    AWS codebuild

  • Angular version: 2.0.0-rc.X

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Most helpful comment

@larrybek I got it working here downgrading the version of sass-loader to 4.1.1 again.

All 8 comments

Hi @larrybek, could you please give me a link the travis build you are referring to? Thanks.

Hi @nnixaa I was referring https://travis-ci.org/akveo/ng2-admin same issue was when I was running docker image build. Now I see your image success. Can you tell me what you have changed so I can implement it to my code too?

Im getting this warning after which my build is failed:

WARNING in ./~/css-loader!./~/postcss-loader!./~/resolve-url-loader!./~/sass-loader/lib/loader.js?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js?{"bootstrapVersion":4,"useFlexbox":false,"extractStyles":false,"styleLoaders":["style","css","postcss","sass"],"styles":["mixins","normalize","print","reboot","type","images","code","grid","tables","forms","buttons","animation","dropdown","button-group","input-group","custom-forms","nav","navbar","card","breadcrumb","pagination","jumbotron","alert","progress","media","list-group","responsive-embed","close","tags","modal","tooltip","popover","carousel","utilities"],"scripts":["alert","button","carousel","collapse","dropdown","modal","popover","scrollspy","tab","tooltip","util"],"configFilePath":"/var/www/.bootstraprc","bootstrapPath":"/var/www/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js
  resolve-url-loader cannot operate: source-map error
  ENOENT: no such file or directory, scandir '/var/www/dist'
 @ ./~/style-loader!./~/css-loader!./~/postcss-loader!./~/resolve-url-loader!./~/sass-loader/lib/loader.js?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js?{"bootstrapVersion":4,"useFlexbox":false,"extractStyles":false,"styleLoaders":["style","css","postcss","sass"],"styles":["mixins","normalize","print","reboot","type","images","code","grid","tables","forms","buttons","animation","dropdown","button-group","input-group","custom-forms","nav","navbar","card","breadcrumb","pagination","jumbotron","alert","progress","media","list-group","responsive-embed","close","tags","modal","tooltip","popover","carousel","utilities"],"scripts":["alert","button","carousel","collapse","dropdown","modal","popover","scrollspy","tab","tooltip","util"],"configFilePath":"/var/www/.bootstraprc","bootstrapPath":"/var/www/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js 4:14-1030
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.browser.ts

@larrybek I got it working here downgrading the version of sass-loader to 4.1.1 again.

sass-loader to 4.1.1! thanks!

Yeah it fixed the error above. May you also got this error in build

ERROR in ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
Module build failed: Error: 
The package is 'bootstrap' for bootstrap v4 and 'bootstrap-sass' for v3.

Bootstrap error was fixed. Issue is if you're using Bitbucket pipeline to sync your files to AWS S3 bucket it ignores all files that are starting with dot (so it was ignoring .bootstraprc in root of folder). It was bringing error and crushing the build. Hopefully anyone else has this issue and my comment helped him to figure out. Check files after it synced from Bitbucket to AWS S3.

@larrybek great! Closing this issue then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

burtonator picture burtonator  路  3Comments

maxlein picture maxlein  路  3Comments

Kalaijagdai picture Kalaijagdai  路  4Comments

PatrickHuetter picture PatrickHuetter  路  3Comments

lopn picture lopn  路  4Comments