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?


3 Replies

SS Sivakumar Sekar Syncfusion Team December 2, 2021 01:09 PM UTC

Hi Hardik, 

  Sorry for the inconvenience caused. We suggest you to add the below Diagram component’s styles instead of styles mentioned in the Documentation. We have logged a documentation improvement task for updating it and We will include the documentation changes on our Volume 4 release. 

@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"; 

Regards,  
Sivakumar    



SS Sivakumar Sekar Syncfusion Team December 20, 2021 03:41 PM UTC

Hi Hardik, 

Sorry for the inconvenience caused. We will include the changes and refresh the documentation on December 22nd, 2021. 

Regards,  
Sivakumar    




AR Aravind Ravi Syncfusion Team December 23, 2021 09:20 AM UTC

Hi Hardik, 

We have made the changes in documentation and the documentation has been refreshed in live site. Please find the published documentation changes in below link  
   

Regards 
Aravind Ravi 


Loader.
Up arrow icon