question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Palette With AoT

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

I should be able to use AoT compilation with custom palettes.

What is the current behavior?

AoT compilation fails because it is unable to find the theme files.

@import '~@angular/material/core/theming/_all-theme.scss';

// and getting this error:
Compilation failed. Resource file not found: C:/ng2-app/src/~@angular/material/core/theming/_all-theme.scss

I also tried changing to a relative reference:

@import '../node_modules/@angular/material/core/theming/_all-theme.scss';

// and getting this error:
Compilation failed. Resource file not found: C:/ng2-app/node_modules/@angular/material/core/core

What are the steps to reproduce?

Follow the steps for adding a custom theme (), and the steps for adding AoT.

What is the use-case or motivation for changing an existing behavior?

Fixing this will allow people to take advantage of AoT compilation as well as using custom templates.

Which versions of Angular, Material, OS, browsers are affected?

@angular 2.4.7 @angular/material 2.0.0-beta.2 Windows 10 Chrome

Is there anything else we should know?

Most likely the same issue as #3001

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kamarouskicommented, Feb 27, 2017

It should be

@import "~@angular/material/core/theming/all-theme"

Works without issues in my project.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attack on Titan » Beautiful Color Palettes for Your Next Design
Palette can be easily customized with our online color schemes editor. This editor ships with RGB, HSL and HCL colorspace, You can generate...
Read more >
How to: Create custom Color Palettes and Gradient ... - YouTube
Learn how to create Create Color Pallets and Gradient Pallets in Affinity Photo. Use the Color Picker Tool and learn about Global Source...
Read more >
The ins and outs of creating a custom palette in Painter
Painter Master Don Seegmiller walks through all of the custom palette creation details so that you can build your ulimate tool set at...
Read more >
How to use your own color palettes with Seaborn
seaborn and matplotlib have a lot of different color palettes to choose from. ... and refer to your custom palette throughout your code....
Read more >
How to specify custom palette for a category? #446 - GitHub
Hello! cellxgene is looking great! I just got a brief demo from @colinmegill and one of my questions is, how can one specify...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found