Error to Start EJ2 for React by following the Steps Given in [Getting Started] Section

Hi,

I tried the steps given by the [Getting Started] section, https://ej2.syncfusion.com/16.1.24/react/documentation/base/getting-started.html, however it throws exception in both the npm console as well as in the browser.

Here is the exception:

I have also attached my sample app here.

Thanks.


Attachment: reactej201_4280cd37.7z

1 Reply

SU Sridurgha Uthayakumaran Syncfusion Team March 8, 2018 11:35 AM UTC

Hi Caroline, 

The reported issue [steps given in the (Getting Started) section, https://ej2.syncfusion.com/16.1.24/react/documentation/base/getting-started.html, throws exception in both the npm console as well as in the browser] occurs due to the latest version of @types/react-dom  package has not been updated in the create-react-app. 

Please find the below bug report for further details. 


Kindly do the below steps to render the react component in the sample. 

  1. Create the quick start app using create-react-app as mentioned in the getting started documentation.

  1. Change the version of @types/react-dom in package.json file from ^15.5.7 to 16.0.4 in devDependencies.

  1. Run the command npm install followed by npm start.

For your convenience, we have created a sample for button component and the same can be download from below link. 


Please let us know if you have any concerns. 

Regards, 
Sridurgha U 
 


Loader.
Up arrow icon