From b39761f0a3e3d278354d482c9122e0c72074c363 Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Tue, 3 Sep 2024 10:20:00 +0200 Subject: [PATCH] chore: add scss workaround for upgrade guide --- docusaurus/docs/Angular/basics/upgrade-v4.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docusaurus/docs/Angular/basics/upgrade-v4.mdx b/docusaurus/docs/Angular/basics/upgrade-v4.mdx index fa5cff27..570727c1 100644 --- a/docusaurus/docs/Angular/basics/upgrade-v4.mdx +++ b/docusaurus/docs/Angular/basics/upgrade-v4.mdx @@ -130,6 +130,14 @@ In case you run into an SCSS issue related to icons, you should extend the style @import "stream-chat-angular/src/assets/styles/scss/index.scss"; ``` +If Angular can't find the stylesheet, you should include `node_modules` in your `angular.json` in the `build.options` section: + +``` +"stylePreprocessorOptions": { + "includePaths": ["./node_modules"] +} +``` + No futher action is required for customers who were already using theme-v2. Customers who used to use theme-v1 now need to use theme-v2. Updating from theme-v1 to theme-v2 will require to rewrite your custom CSS code as the new theme has a new variable system, and all the components were restructured. To help you get started please refer our [theming guide](../theming/introduction.mdx).