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.

help(Upgrade): Unable to finish upgrade from 12 to 13 due to scss issues

See original GitHub issue

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

12

Description

When upgrading from angular 12 to angular 13 of the material library the upgrade completes successfully but the build fails with cryptic error message.

Reproduction

Steps to reproduce:

  1. clone https://github.com/IsraelHikingMap/Site
  2. cd IsraelHiking.Web
  3. upgrade angular from 12 to 13
  4. upgrade material from 12 to 13
  5. run npm run build:watch
  6. Build fails with the following error message:
SassError: expected "{".
  ╷
1 │ @use "@angular/material" as mat;
  │                                  ^
  ╵
  src/scss/sidebar.scss 1:34  @import
  src/scss/common.scss 6:9    root stylesheet

Expected Behavior

Upgrade should complete successfully and build should pass.

Actual Behavior

Unable to use material 13 due to this cryptic error which I haven’t found a way to workaround or fix.

Environment

  • Angular: 13
  • CDK/Material: 13
  • Browser(s): N/A
  • Operating System (e.g. Windows, macOS, Ubuntu): maxOS

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
HarelMcommented, Apr 13, 2022

I’m still stuck with material 12 due to this issue, I have not found a solution unfortunately…

0reactions
angular-automatic-lock-bot[bot]commented, Sep 1, 2022

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

Angular upgrade own library from 12 to 13 scss Error 'SassError
Now, after upgrading the library project and trying to link the resulting build (from new Ivy) into my app I'm getting the error:...
Read more >
Angular Material Theming System - Complete Guide
In this article, we will learn about custom themes, modifying typography and much more using new SASS mixins. In this article, you will...
Read more >
Android Auto Community - Google Support
Connecting to Android Auto. Android Auto isn't working on Pixel 5 after Android 13 update. My android auto is failing to connect wirelessly....
Read more >
Migrating from v2 to v3 - Gatsby
This is a reference for upgrading your site from Gatsby v2 to Gatsby v3. ... If you don't see any, help the maintainers...
Read more >
Angular :host, :host-context, ::ng-deep - The Complete Guide
Angular CLI CSS Preprocessors support - Sass, Less and Stylus; How can we use Sass to improve our styles; Summary. In order to...
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