{"id":89952,"date":"2024-12-26T15:13:48","date_gmt":"2024-12-26T11:43:48","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/error-cant-find-stylesheet-to-import-75-import-angularmaterialtheming-106e\/"},"modified":"2024-12-26T15:13:48","modified_gmt":"2024-12-26T11:43:48","slug":"error-cant-find-stylesheet-to-import-75-import-angularmaterialtheming-106e","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/error-cant-find-stylesheet-to-import-75-import-angularmaterialtheming-106e\/","title":{"rendered":"\u062e\u0637\u0627: \u0634\u06cc\u0648\u0647 \u0646\u0627\u0645\u0647 \u0628\u0631\u0627\u06cc \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u067e\u06cc\u062f\u0627 \u0646\u0645\u06cc \u0634\u0648\u062f. 75 @import &#39;@angular\/material\/theming&#39;;"},"content":{"rendered":"<div data-article-id=\"2175647\" id=\"article-body\">\n<p>\u0645\u0646 \u0646\u0633\u062e\u0647 \u0627\u0646\u06af\u0648\u0644\u0627\u0631 \u0631\u0627 \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0627\u0632 10 \u0628\u0647 18 \u0627\u0631\u062a\u0642\u0627 \u062f\u0627\u062f\u0645.`<\/p>\n<p>\u0645\u0627 \u062f\u0631 \u062d\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0627 Angular Material \u062f\u0631 \u067e\u0631\u0648\u0698\u0647 Angular 18 \u0628\u0627 \u0645\u0634\u06a9\u0644\u06cc \u0631\u0648\u0628\u0631\u0648 \u0647\u0633\u062a\u06cc\u0645. \u067e\u06cc\u0627\u0645 \u062e\u0637\u0627\u06cc \u062e\u0627\u0635 \u0627\u06cc\u0646 \u0627\u0633\u062a:<\/p>\n<p>.\/src\/styles.scss &#8211; \u062e\u0637\u0627: \u0633\u0627\u062e\u062a \u0645\u0627\u0698\u0648\u0644 \u0646\u0627\u0645\u0648\u0641\u0642 \u0628\u0648\u062f (\u0627\u0632 .\/node_modules\/@angular-devkit\/build-angular\/node_modules\/sass-loader\/dist\/cjs.js):<br \/>\u0635\u0641\u062d\u0647 \u0633\u0628\u06a9 \u0628\u0631\u0627\u06cc \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.<br \/>\u2577<br \/>73 \u2502 @import &#39;@angular\/material\/theming&#39;;<br \/>\u2502 ^^^^^^^^^^^^^^^^^^^^^^^^^^^<br \/>\u2575<br \/>\u0634\u06cc\u0648\u0647 \u0646\u0627\u0645\u0647 \u0631\u06cc\u0634\u0647 src\\styles.scss 73:9<\/p>\n<p>\u0627\u06cc\u0646 \u062e\u0637\u0627 \u0628\u0627 \u0648\u062c\u0648\u062f \u0628\u0631\u0631\u0633\u06cc \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f \u0648 \u062a\u0644\u0627\u0634 \u0628\u0631\u0627\u06cc \u0631\u0641\u0639 \u0622\u0646 \u0647\u0645\u0686\u0646\u0627\u0646 \u0627\u062f\u0627\u0645\u0647 \u062f\u0627\u0631\u062f. \u062f\u0631 \u0632\u06cc\u0631 \u0634\u0631\u062d \u0645\u0641\u0635\u0644\u06cc \u0627\u0632 \u0645\u062d\u06cc\u0637\u060c \u0645\u0631\u0627\u062d\u0644 \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u0648 \u0645\u0634\u0627\u0647\u062f\u0627\u062a \u0645\u0627 \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u062c\u0632\u0626\u06cc\u0627\u062a \u0645\u062d\u06cc\u0637\u06cc:<\/p>\n<p>Angular CLI: 18.2.12<\/p>\n<p>\u0646\u0648\u062f: 18.20.5<\/p>\n<p>\u0645\u062f\u06cc\u0631 \u0628\u0633\u062a\u0647: npm 10.9.2<\/p>\n<p>\u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644: \u0648\u06cc\u0646\u062f\u0648\u0632 10 (64 \u0628\u06cc\u062a\u06cc)<\/p>\n<p>\u0628\u0633\u062a\u0647 \u0647\u0627\u06cc \u0632\u0627\u0648\u06cc\u0647 \u0627\u06cc:<\/p>\n<p>@angular\/animations: 18.2.13<\/p>\n<p>@angular\/common: 18.2.13<\/p>\n<p>@angular\/material: 18.2.14<\/p>\n<p>@angular\/cdk: 18.2.14<\/p>\n<p>\u062a\u0627\u06cc\u067e: 5.5.4<\/p>\n<p>\u0627\u0642\u062f\u0627\u0645\u0627\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u062a\u0627\u06a9\u0646\u0648\u0646:<\/p>\n<p>\u062a\u0623\u06cc\u06cc\u062f \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627:<\/p>\n<p>\u062a\u0623\u06cc\u06cc\u062f \u0634\u062f \u06a9\u0647 \u0647\u0645\u0647 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc\u200c\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 Angular Material \u0646\u0635\u0628 \u0634\u062f\u0647\u200c\u0627\u0646\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0645\u062c\u062f\u062f \u0628\u0633\u062a\u0647 \u0647\u0627 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f:<\/p>\n<p>npm \u0646\u0635\u0628 @angular\/material @angular\/cdk<br \/>npm \u0628\u0627\u0632\u0633\u0627\u0632\u06cc node-sass<br \/>npm \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f<\/p>\n<p>\u0628\u0631\u0631\u0633\u06cc angular.json:<\/p>\n<p>\u062a\u0623\u06cc\u06cc\u062f \u06a9\u0631\u062f \u06a9\u0647 angular.json \u0634\u0627\u0645\u0644 styles.scss \u0627\u0633\u062a \u0648 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0646\u0627\u062f\u0631\u0633\u062a\u06cc \u0628\u0631\u0627\u06cc \u0645\u0636\u0627\u0645\u06cc\u0646 Material \u0646\u062f\u0627\u0631\u062f.<\/p>\n<p><code\/><code><br \/>\"styles\": [<br \/>\"src\/styles.scss\",<br \/>\"node_modules\/@angular\/material\/prebuilt-themes\/indigo-pink.css\"<br \/>]<\/code><code\/><br \/>\u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc styles.scss:<\/p>\n<p>\u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f \u06a9\u0647 \u0648\u0627\u0631\u062f\u0627\u062a \u0632\u06cc\u0631 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u0648 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u062d\u0644 \u0645\u06cc \u0634\u0648\u062f:<\/p>\n<p><code\/>`<br \/>@import &#39;@angular\/material\/theming&#39;;<br \/>@import &#39;bootstrap\/scss\/bootstrap&#39;;<br \/>@import &#39;ngx-toaster\/toster&#39;;<\/p>\n<p>\u0647\u0646\u06af\u0627\u0645 \u062a\u0639\u0631\u06cc\u0641 \u06cc\u06a9 \u0645\u0648\u0636\u0648\u0639 \u0633\u0641\u0627\u0631\u0634\u06cc\u060c \u0648\u0627\u0631\u062f\u0627\u062a \u0627\u0636\u0627\u0641\u06cc \u0648 \u0645\u0636\u0627\u0645\u06cc\u0646 \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u063a\u06cc\u0631\u0636\u0631\u0648\u0631\u06cc \u062d\u0630\u0641 \u0634\u062f.<\/p>\n<p>\u062a\u0646\u0638\u06cc\u0645 \u062a\u0645 \u0633\u0641\u0627\u0631\u0634\u06cc:<\/p>\n<p>\u06cc\u06a9 \u062a\u0645 Material \u0633\u0641\u0627\u0631\u0634\u06cc \u062f\u0631 styles.scss \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f:<\/p>\n<p>@include mat-core();<\/p>\n<p>$my-theme-primary: mat-palette($mat-deep-purple);<br \/>$my-theme-accent: mat-palette ($mat-blue, A200, A100, A400);<br \/>$my-theme-warn: mat-palette($mat-red);<\/p>\n<p>$theme1: mat-light-theme($my-theme-primary, $my-theme-accent, $my-theme-warn);<\/p>\n<p>@include angular-material-theme($theme1);<\/p>\n<p>`<code\/><\/p>\n<p>\u0645\u0648\u0636\u0648\u0639 \u0627\u0646\u062a\u062e\u0627\u0628 \u062a\u0645:<\/p>\n<p>\u0647\u0646\u06af\u0627\u0645 \u0627\u062c\u0631\u0627\u06cc ng add @angular\/material@18\u060c \u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u06cc\u0645 \u06a9\u0647 \u062a\u0645 \u0647\u0627\u06cc \u0642\u062f\u06cc\u0645\u06cc \u062a\u0631 \u0645\u0627\u0646\u0646\u062f indigo-pink.css \u062f\u0631 \u06af\u0632\u06cc\u0646\u0647 \u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u0646\u062f:<\/p>\n<p>? \u06cc\u06a9 \u0646\u0627\u0645 \u062a\u0645 \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u06cc\u0627 \u00ab\u0633\u0641\u0627\u0631\u0634\u06cc\u00bb \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u062a\u0645 \u0633\u0641\u0627\u0631\u0634\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f: (\u0627\u0632 \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u062c\u0647\u062a \u062f\u0627\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f)<br \/>\u0644\u0627\u062c\u0648\u0631\u062f\u06cc\/\u0622\u0628\u06cc<br \/>\u0631\u0632\/\u0642\u0631\u0645\u0632<br \/>\u0633\u0631\u062e\u0627\u0628\u06cc\/\u0628\u0646\u0641\u0634<br \/>\u0641\u06cc\u0631\u0648\u0632\u0647 \u0627\u06cc\/\u0646\u0627\u0631\u0646\u062c\u06cc<br \/>\u0633\u0641\u0627\u0631\u0634\u06cc<\/p>\n<p>\u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c indigo-pink.css \u062f\u0631 node_modules\/@angular\/material\/prebuilt-themes\/ \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f.<\/p>\n<p>\u0627\u0639\u062a\u0628\u0627\u0631 \u0633\u0646\u062c\u06cc \u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u06af\u0631\u0647:<\/p>\n<p>\u0648\u062c\u0648\u062f @angular\/material\/theming \u0631\u0627 \u062f\u0631 node_modules \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0631\u062f.<\/p>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0641\u0631\u0645\u0627\u0646 \u0628\u0631\u0627\u06cc \u062a\u0645 \u0647\u0627\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647:<\/p>\n<p>\u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc: C:\\path\\to\\node_modules\\@angular\\material\\prebuilt-themes<\/p>\n<p>azure-blue.css<br \/>cyan-orange.css<br \/>deeppurple-amber.css<br \/>indigo-pink.css<br \/>Magenta-violet.css<br \/>\u0635\u0648\u0631\u062a\u06cc-\u0622\u0628\u06cc.css<br \/>\u0628\u0646\u0641\u0634-\u0633\u0628\u0632.css<br \/>rose-red.css<\/p>\n<p>\u06a9\u0627\u0645\u067e\u0627\u06cc\u0644 \u0645\u062c\u062f\u062f:<\/p>\n<p>\u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u06a9\u0634 \u0647\u0627 \u0648 \u06a9\u0627\u0645\u067e\u0627\u06cc\u0644 \u0645\u062c\u062f\u062f \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>\u06a9\u0634 \u067e\u0627\u06a9<br \/>\u06a9\u0634 npm \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 &#8211;force<br \/>\u0627\u0632 \u0633\u0627\u062e\u062a &#8212; \u067e\u0631\u062d\u0631\u0641<br \/>\u0627\u0632 \u062e\u062f\u0645\u062a<\/p>\n<p>\u0627\u062f\u063a\u0627\u0645 Toastr \u0648 Bootstrap:<\/p>\n<p>\u062a\u0627\u06cc\u06cc\u062f \u0634\u062f\u0647 ngx-toastr \u0648 Bootstrap SCSS \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0646\u062f \u0648 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u062d\u0644 \u0645\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<p>\u0633\u0648\u0627\u0644\u0627\u062a \u0648 \u0645\u0634\u0627\u0647\u062f\u0627\u062a:<\/p>\n<p>\u0622\u06cc\u0627 \u0645\u0648\u0636\u0648\u0639 \u06af\u0645\u0634\u062f\u0647 \u0645\u0633\u0626\u0644\u0647 \u0627\u0633\u062a\u061f<\/p>\n<p>\u0686\u0631\u0627 \u062a\u0645 \u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f indigo-pink.css \u062f\u0631 \u0637\u0648\u0644 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc ng add @angular\/material@18 \u0641\u0647\u0631\u0633\u062a \u0646\u0645\u06cc \u0634\u0648\u0646\u062f\u060c \u062d\u062a\u06cc \u0627\u06af\u0631 \u062f\u0631 node_modules \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f\u061f<\/p>\n<p>\u0622\u06cc\u0627 \u062d\u0644 \u0645\u0633\u06cc\u0631 \u0639\u0644\u062a \u0627\u0635\u0644\u06cc \u0627\u0633\u062a\u061f<\/p>\n<p>\u0628\u0627 \u0648\u062c\u0648\u062f \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0635\u062d\u06cc\u062d \u062f\u0631 styles.scss \u0648 angular.json\u060c \u0686\u0631\u0627 @angular\/material\/theming \u062d\u0644 \u0646\u0645\u06cc \u0634\u0648\u062f\u061f<\/p>\n<p>\u0622\u06cc\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a\u06cc \u062f\u0631 Angular Material 18 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f\u061f<\/p>\n<p>\u0622\u06cc\u0627 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u06cc\u0627 \u062a\u0645\u200c\u0647\u0627\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u062f\u0631 Angular 18 \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0627\u0639\u062b \u0627\u06cc\u0646 \u0646\u0627\u0633\u0627\u0632\u06af\u0627\u0631\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a\u061f<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0646 \u0646\u0633\u062e\u0647 \u0627\u0646\u06af\u0648\u0644\u0627\u0631 \u0631\u0627 \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0627\u0632 10 \u0628\u0647 18 \u0627\u0631\u062a\u0642\u0627 \u062f\u0627\u062f\u0645.` \u0645\u0627 \u062f\u0631 \u062d\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0627 Angular Material \u062f\u0631 \u067e\u0631\u0648\u0698\u0647 Angular 18 \u0628\u0627 \u0645\u0634\u06a9\u0644\u06cc \u0631\u0648\u0628\u0631\u0648 \u0647\u0633\u062a\u06cc\u0645. \u067e\u06cc\u0627\u0645 \u062e\u0637\u0627\u06cc \u062e\u0627\u0635 \u0627\u06cc\u0646 \u0627\u0633\u062a: .\/src\/styles.scss &#8211; \u062e\u0637\u0627: \u0633\u0627\u062e\u062a \u0645\u0627\u0698\u0648\u0644 \u0646\u0627\u0645\u0648\u0641\u0642 \u0628\u0648\u062f (\u0627\u0632 .\/node_modules\/@angular-devkit\/build-angular\/node_modules\/sass-loader\/dist\/cjs.js):\u0635\u0641\u062d\u0647 \u0633\u0628\u06a9 \u0628\u0631\u0627\u06cc \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.\u257773 \u2502 @import &#39;@angular\/material\/theming&#39;;\u2502 ^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2575\u0634\u06cc\u0648\u0647 \u0646\u0627\u0645\u0647 \u0631\u06cc\u0634\u0647 src\\styles.scss &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-89952","post","type-post","status-publish","format-standard","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/89952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=89952"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/89952\/revisions"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=89952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=89952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=89952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}