- Home
- Forum
- React - EJ 2
- ej2-react-base styles not showing
ej2-react-base styles not showing
Hi,
I have installed syncfusion diagram using npm install @syncfusion/ej2-react-diagram --save in my react project. And follow all the instruction as per syncfusion diagram documentation. After installing npm package as per description, I have set all material.css in App.css file. But when I try to run the project using npm start then it's giving me an error like Can't resolve '../node_modules/@syncfusion/ej2-react-base/styles/material.css'. When I check ej2-react-base folder then it's not containing styles folder.
After searching online I found separate npm package for ej2-react-base. So I tried ej2-react-base in the project but it's not setting styles folder in the project.
So how to resolve this issue? How to get styles folder under node_moduldes/ej2-react-base?
|
@import "../node_modules/@syncfusion/ej2-diagrams/styles/material.css";
@import "../node_modules/@syncfusion/ej2-base/styles/material.css";
@import "../node_modules/@syncfusion/ej2-popups/styles/material.css";
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css";
@import "../node_modules/@syncfusion/ej2-navigations/styles/material.css"; |
- 3 Replies
- 3 Participants
-
HA Hardik
- Dec 2, 2021 04:51 AM UTC
- Dec 23, 2021 09:20 AM UTC