TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yash patel
1.5k
283
21k
Getting error in importing css files
Nov 3 2020 12:46 AM
I m trying to import css files in react project
I created the project by create-react-app command
i have placed the different css files like bootstart.css,index .css and some more in the src directory itself
But still i m getting error when importing this files
I m getting this error
Module not found: Can't resolve 'index.css' in 'C:\Users\Yesh Depani\Desktop\nsroute\src'
Here is my code of import
import
React from
"react"
;
import
ReactDOM from
"react-dom"
;
import
{ BrowserRouter } from
"react-router-dom"
;
import
"index.css"
;
//import "atlantis.css";
//import "bootstrap.css";
//import "bootstrap.min.css";
import
App from
"./App"
;
//import * as serviceWorker from "./serviceWorker";
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById(
"root"
)
);
Reply
Answers (
3
)
Image is not Loading
How to build reactJS App in Visual studio Code and publish in IIS