material icon indicating copy to clipboard operation
material copied to clipboard

angular-material.css does not load when using SystemJS for v1.0.0-rc7 onwards [CRITICAL]

Open CxRes opened this issue 10 years ago • 4 comments

Like the title says, when I upgraded to 1.0.0-rc7 and 1.0.0 with JSPM, angular-material.css is not loading and everything is broken! Works fine 1.0.0-rc6.

CxRes avatar Dec 17 '15 19:12 CxRes

It looks like angular-material.css has been removed from the dependencies "shim" block for angular-material in the bower-material repo (where the package is pulled from for npm, jspm, and bower).

screenshot of package.json

Work around is to include the css file in your project as you would other css file.

In my project it is located at: jspm_packages/github/angular/[email protected]/angular-material.min.css

Note: This the path above indicates it is in the jspm_packages/github/... folder because I installed a very specific version from github - based on github tags (updated to show your version here). If you installed via just jspm, jspm npm, or jspm bower, then the file will be found in a slightly different path under the jspm_packages/.... Take a look at what it says in your jspm config file to find the actual path.

Alternately, you could fork the bower-material branch and update the project.json file to fix this...and just install using your customized fork repo.

photusenigma avatar Jan 20 '16 15:01 photusenigma

@photusenigma Thanks for pointing that out - at least I can carry on with my work for now.

I believe Angular Material team ought to fix this regression themselves because it seems a bit stupid to include angular-material.css every time I include the angular-material and I cannot be bothered to keep rebasing every time a new version is released.

CxRes avatar Jan 23 '16 21:01 CxRes

Will not fix. See https://github.com/angular/material/issues/6063

ThomasBurleson avatar Feb 24 '16 01:02 ThomasBurleson

If so, Please clearly document this Information and why this has been done. It is unfair for every jspm user to dig up #6063. I'll open a separate ticket if you like?

CxRes avatar Feb 24 '16 04:02 CxRes