Back to forum

Hi Team, I’m trying to integrate webDataRocks in reactjs but i keep getting errors

Answered

I have included https://github.com/WebDataRocks/pivot-react/blob/master/ES6/src/webdatarocks.react.js file. After adding it, i get this error. 
‘types’ can only be used in a .ts file.
So  i commented from line-no 10 : propTypes, to line-no 44 
then i got this below error
/src/webdatarocks.react.js: Unexpected reserved type string (12:40)
Here is a online-complier link 
https://stackblitz.com/edit/react-jvqtvb?embed=1&file=webdatarocks.react.js
can you pls help, team 

3 answers

WebDataRocks Team WebDataRocks June 9, 2020

Hello @shaktish,
 
Thank you for the question.
Online-compiler link is not available any more.
Could you please let us know if the issue is still actual?
 
Regards,
WebDataRocks Team

Dorcas Essien August 5, 2020

Hi Webdatarocks team,
Am trying to import ‘webdatarocks.react’ into my react project but am getting the error that “webdatarocks.react@latest can not be found in the npm register”

 
WebDataRocks Team WebDataRocks August 10, 2020

Hello, Dorcas Essien,
 
Thank you for contacting us.
 
Our team wants to explain that no separate npm package containing WebDataRocks for React exists.
We suggest checking out our step-by-step tutorial on integration with React in order to learn the correct way to embed WebDataRocks into React application.
 
Our team hopes it works for your case.
 
Kind regards,
WebDataRocks Team

Move up