Skip to content

Prebuilt themes missing from material2-builds #5038

@byrondover

Description

@byrondover

prebuilt-themes top-level directory was deleted from the angular/material2-builds earlier today. Prebuilt themes disappeared in ed9091.

As a result, Angular apps installing the latest Material builds from Git and importing one or more of the prebuilt themes now fail to compile.

@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';

Results in...

ERROR in ./~/css-loader?{"sourceMap":false,"importLoaders":1}!./~/postcss-loader?{"ident":"postcss"}!./src/styles.css
Module not found: Error: Can't resolve '@angular/material/prebuilt-themes/deeppurple-amber.css' in './src'
 @ ./~/css-loader?{"sourceMap":false,"importLoaders":1}!./~/postcss-loader?{"ident":"postcss"}!./src/styles.css 4:10-204
 @ ./src/styles.css
 @ multi ./src/styles.css
webpack: Failed to compile

Was removing prebuilt-themes an intended change?

If so, is there an alternative recommended method of importing these prebuilt themes, or have they been deprecated entirely?

Metadata

Metadata

Assignees

Labels

P1Impacts a large percentage of users; if a workaround exists it is partial or overly painful

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions