You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
zone.js
Is this a regression?
Yes
Description
In an AnalogJS project when using Vite 6.x, the modern sass compiler is used. When using SSR and commonly, Angular Material, the sass compiler throws an error. I traced it back to zone.js patching the Promise which is being used inside the sass-embedded package used for sass compilation.
Steps to reproduce:
Clone the repo
Run npm install.
Run npx vite or npx ng serve.
Visit the local development URL.
Note the error shown above.
Workarounds:
Use Zoneless change detection and not load zone.js/node in the main.server.ts file.
Which @angular/* package(s) are the source of the bug?
zone.js
Is this a regression?
Yes
Description
In an AnalogJS project when using Vite 6.x, the modern sass compiler is used. When using SSR and commonly, Angular Material, the sass compiler throws an error. I traced it back to
zone.js
patching thePromise
which is being used inside thesass-embedded
package used for sass compilation.Steps to reproduce:
npm install
.npx vite
ornpx ng serve
.Workarounds:
Use Zoneless change detection and not load
zone.js/node
in themain.server.ts
file.Or
Configure Vite to use the legacy sass compiler
Using the modern sass compiler out of the box is preferred.
Please provide a link to a minimal reproduction of the bug
https://github.com/brandonroberts/analog-angular-material-zonejs
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
Using Analog 1.16.0
The text was updated successfully, but these errors were encountered: