React Installation problems


Topic: React Installation problems

bbq598 asked 4 years ago

Hi,

We've followed the quick start guide to import the SCSS and tried to run the application, but it's not working as given in the guide. Got failed to compile error. Failed to compile.

./src/assets/scss/mdb-pro.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/assets/scss/mdb-pro.scss) Error: Can't resolve './img/overlays/01.png' in 'C:\Users\bbq59\Documents\GitHub\bfs-react-front-end\bfs-react-front-end\src\assets\scss'

Checked these two links but does not fix my problems. https://mdbootstrap.com/support/react/scss-is-not-working/ https://mdbootstrap.com/support/react/error-after-following-steps-in-scss-portion-of-5-min-quick-start/


Piotr Glejzer staff commented 4 years ago

are you using create react app? You have to add sass loader to your webpack rules if you have a custom application or add a dependency sass to your package.json if you are using create-react-app


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 5.0.1
  • Device: PC
  • Browser: Chroom
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes