css MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Post Reply
MaxRash
Posts: 6
Joined: 22 Mar 2021, 09:42

22 Mar 2021, 09:51

In ULTIMA Theme when i run it on my local machine it works fine but when i upload it to my private repo and clone the code from there and runs it, it gave me error

Refused to apply style from 'http://localhost:5000/assets/theme/indi ... -light.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

(index):1 Refused to apply style from 'http://localhost:5000/assets/layout/css ... -light.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

On Index page I try few things but it didn't work.

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

22 Mar 2021, 10:11

Hi,
Did you run the sass command? "sass --watch src/assets:src/assets --no-source-map"

MaxRash
Posts: 6
Joined: 22 Mar 2021, 09:42

22 Mar 2021, 10:16

no i didn't. How should i run that ?

MaxRash
Posts: 6
Joined: 22 Mar 2021, 09:42

22 Mar 2021, 13:21

i am facing that error first time, can you explain it detail that how should i fix that?

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

25 Mar 2021, 10:10

Hi,
Yes, you should run this code. Also, you can see this command in documentation (https://www.primefaces.org/ultima-ng/#/documentation)
You can send me the error message?

MaxRash
Posts: 6
Joined: 22 Mar 2021, 09:42

25 Mar 2021, 10:35

this is the error i got after running that command

Error: Can't find stylesheet to import.

@import './designer/_components';
src\assets\sass\theme\_theme_dark.scss 4:9 @import
src\assets\theme\yellow\theme-dark.scss 7:9 root stylesheet

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

26 Mar 2021, 13:24

Hi,
Could you please check you copied all files(folders and files in the sass folder)? That means you need the designer folder(you can see in this path src/assets/sass/theme in the ultima) in your project. If it does not exist, please add the folder and try again sass command.

MaxRash
Posts: 6
Joined: 22 Mar 2021, 09:42

02 Dec 2021, 07:01

HI i created the folder but errors are

Error: Can't find stylesheet to import.

Code: Select all

@import './designer/_components';

  src\assets\sass\theme\_theme_dark.scss 4:9  @import        
  src\assets\theme\amber\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.

@import './designer/_components';

  src\assets\sass\theme\_theme_light.scss 4:9  @import        
  src\assets\theme\amber\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.

@import './designer/_components';  
  src\assets\sass\theme\_theme_dark.scss 4:9  @import
  src\assets\theme\blue\theme-dark.scss 7:9   root stylesheet

Error: Can't find stylesheet to import.
 @import './designer/_components';

  src\assets\sass\theme\_theme_light.scss 4:9  @import
  src\assets\theme\blue\theme-light.scss 8:9   root stylesheet

Error: Can't find stylesheet to import.
 @import './designer/_components';
 
  src\assets\sass\theme\_theme_dark.scss 4:9     @import
  src\assets\theme\bluegrey\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
  @import './designer/_components';
 
  src\assets\sass\theme\_theme_light.scss 4:9     @import
  src\assets\theme\bluegrey\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
  @import './designer/_components';
 
  src\assets\sass\theme\_theme_dark.scss 4:9  @import
  src\assets\theme\brown\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
  @import './designer/_components';
 
  src\assets\sass\theme\_theme_light.scss 4:9  @import
  src\assets\theme\brown\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9  @import
  src\assets\theme\cyan\theme-dark.scss 7:9   root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
 
  src\assets\sass\theme\_theme_light.scss 4:9  @import
  src\assets\theme\cyan\theme-light.scss 8:9   root stylesheet

Error: Can't find stylesheet to import.
  @import './designer/_components';
 
  src\assets\sass\theme\_theme_dark.scss 4:9       @import
  src\assets\theme\deeporange\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9       @import
  src\assets\theme\deeporange\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9       @import
  src\assets\theme\deeppurple\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';

  src\assets\sass\theme\_theme_light.scss 4:9       @import
  src\assets\theme\deeppurple\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
 @import './designer/_components';
 
  src\assets\sass\theme\_theme_dark.scss 4:9  @import
  src\assets\theme\green\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
  @import './designer/_components';
 
  src\assets\sass\theme\_theme_light.scss 4:9  @import
  src\assets\theme\green\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
 @import './designer/_components';

  src\assets\sass\theme\_theme_dark.scss 4:9   @import
  src\assets\theme\indigo\theme-dark.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9   @import
  src\assets\theme\indigo\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9      @import
  src\assets\theme\lightblue\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9      @import
  src\assets\theme\lightblue\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9       @import
  src\assets\theme\lightgreen\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9       @import
  src\assets\theme\lightgreen\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9  @import
  src\assets\theme\lime\theme-dark.scss 7:9   root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9  @import
  src\assets\theme\lime\theme-light.scss 8:9   root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9   @import
  src\assets\theme\orange\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9   @import
  src\assets\theme\orange\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9  @import
  src\assets\theme\pink\theme-dark.scss 7:9   root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9  @import
  src\assets\theme\pink\theme-light.scss 8:9   root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9   @import
  src\assets\theme\purple\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9   @import
  src\assets\theme\purple\theme-light.scss 8:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9  @import
  src\assets\theme\teal\theme-dark.scss 7:9   root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9  @import
  src\assets\theme\teal\theme-light.scss 8:9   root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_dark.scss 4:9   @import
  src\assets\theme\yellow\theme-dark.scss 7:9  root stylesheet

Error: Can't find stylesheet to import.
   @import './designer/_components';
  
  src\assets\sass\theme\_theme_light.scss 4:9   @import
  src\assets\theme\yellow\theme-light.scss 8:9  root stylesheet

MaxRash
Posts: 6
Joined: 22 Mar 2021, 09:42

08 Dec 2021, 06:09

is there anyone who can give support ?

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

16 Dec 2021, 10:23

Hi,

Your downloaded folder (for example Ultima 12.2.0) includes the designer folder. You don't need to create it, only need to copy assets folder into your project.

Best regards,
Merve Özçifçi

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest