1

Trying to configure CoreUI with my React App but I'm receiving an error:

I followed the instructions at: https://coreui.io/react/docs/4.0/getting-started/introduction and added:

import '@coreui/dist/css/coreui.min.css';

to the top of my .js file but I'm getting an error:

Module not found: Can't resolve '@coreui/dist/css/coreui.min.css'

1
  • 1
    reinstall the pkg Commented Dec 29, 2021 at 20:35

3 Answers 3

1

Make sure you have the package install,use this command:

npm install @coreui/coreui

After this,it should work!

Sign up to request clarification or add additional context in comments.

Comments

1

As Brandon correctly pointed out, the documentation is currently incorrect.

import '@coreui/coreui/dist/css/coreui.min.css';

When I imported it this way, all of my styles instantly turned my page from ugly to beautiful.

Comments

-1

It's installed. However, the path is incorrect in the instructions. To fix, it should be @coreui/coreui/dist.....

1 Comment

In the documentation,they said : import '@coreui/dist/css/coreui.min.css'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.