Using SCSS files in Create-React-App project


Topic: Using SCSS files in Create-React-App project

cokicoki asked 5 years ago

Hi,

I followed the 5 min Quick Start to use SCSS files in my Create-React-App project. I did many times but failed and I couldn't help it. Would you advice what went wrong with the MDB React Pro software and how to solve it? Thank you.

enter image description here


noveltytech pro premium priority answered 5 years ago

Did you added this line in your custom_variables.scss file

$image-path: "../../img" !default;

it should fix that


cokicoki answered 5 years ago

Hi noveltytech,

I have added $image-path: "../../img" !default; to my custom_variables.scss file. But I am still have the problem.

Here is the problem when I rendered it (npm start). enter image description here


Piotr Glejzer staff commented 5 years ago

Can you show a screen with you folder structure?


cokicoki answered 5 years ago

Hi Piotr Glejzer,

Here it is I attach the folder: enter image description here

enter image description here

enter image description here


Piotr Glejzer staff commented 5 years ago

you have a misspelling in the word assets. You wrote assests but should be assets or vice versa


cokicoki answered 5 years ago

Hi Piotr Glejzer,

Yes, It is working now. I am sorry it is my fault for misspelling the word of assets. Thank you very much.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.4
  • Device: PC
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No