unicef / react-org-chart

Component for displaying an org chart for a large organization. Supports lazy load and export.
https://unicef.github.io/react-org-chart/
246 stars 123 forks source link

Problem after deployment #22

Open Shmata opened 3 years ago

Shmata commented 3 years ago

Hello guys,

I have changed json data in react-org-chart then connect shaped json to my required datasource, everything worked well on localhost. chart Then I deployed, built version of react-org-chart to SharePoint, but as it obviously clear on screen shot there isn't any error in console and chart doesn't appear but data are fetched from DB. res

Is there any trick, may I forgot in deployment process ?

shivamjain169 commented 4 months ago

Hi @Shmata, I'm not able integrate this with my data getting 0 function not found , and Cannot read properties of undefined (reading 'length') error can u please help me out in this.

Shmata commented 4 months ago

Hi @Shmata, I'm not able integrate this with my data getting 0 function not found , and Cannot read properties of undefined (reading 'length') error can u please help me out in this.

Hi @shivamjain169 , Could you please provide me with two things? First, one record of your JSON data (it seems your data is undefined). Make sure it is valid so we can generate an org chart from it. Second, the exact error you've encountered.

shivamjain169 commented 4 months ago

Hi @Shmata
Thanks for you Response,

But now issue is resolved, and working fine

shivamjain169 commented 4 months ago

@Shmata The deployment issue is due to a version mismatch of the D3 library . We need to install the specific version (3.5.17) of the D3 library, and after that, it will work fine.