help(Upgrade): Unable to finish upgrade from 12 to 13 due to scss issues
See original GitHub issueIs 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:
- clone https://github.com/IsraelHikingMap/Site
- cd IsraelHiking.Web
- upgrade angular from 12 to 13
- upgrade material from 12 to 13
- run npm run build:watch
- 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:
- Created 2 years ago
- Reactions:2
- Comments:25 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m still stuck with material 12 due to this issue, I have not found a solution unfortunately…
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.