Getting started - Errors on setup

I'm trying to get a simple example working by following https://ej2.syncfusion.com/react/documentation/treegrid/getting-started/#setup-for-local-development

I have done the NPM install for " npm install @syncfusion/ej2-react-treegrid --save "

When I add the list of CSS files I get the error

./src/App.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/App.css)
Error: Can't resolve '../node_modules/@syncfusion/ej2-react-grids/styles/material.css' in 'D:\ReactDev\sync-01\sync-01\src'

I assume I have missed something out on the setup - any help?

thanks
Richard


2 Replies 1 reply marked as answer

RI Richard December 22, 2020 08:58 AM UTC

OK - I worked it out. You need to install the normal grid first.

thanks
Richard


PK Padmavathy Kamalanathan Syncfusion Team December 22, 2020 09:27 AM UTC

Hi Richard, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: When I add the list of CSS files I get the error 
 
Sorry for the inconvenience caused. We are able to reproduce the issue at our end. In order to resolve this issue, we suggest you to change “ej2-react-grids” to “ej2-grids” in CSS reference
 
Please check the below code snippet, 
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';   
 ------------ 
 
Also we will make this change in our UG Documentation and refresh the same soon. 
 
Kindly get back to us for further assistance. 
 
Regards, 
Padmavathy Kamalanathan 


Marked as answer
Loader.
Up arrow icon