OOlashyn / PCF-TagCloud

Tag Cloud Dataset component using PowerApps Component Framework
MIT License
4 stars 1 forks source link

npm run build throws error #2

Open txh57 opened 4 years ago

txh57 commented 4 years ago

npm run build throws an error in DWCTagCloud.tsx:

pcf-error

OOlashyn commented 4 years ago

Hi @txh57 ,

Sorry for the long reply. This is because the library that I use (react-tag-cloud) is missing className as a react props parameter. I will open a ticket for that library (or if they are busy submit them pull request).

As a workaround to make it work open file TagCloud.d.ts at node_modules>react-tag-cloud>dist and add next line on the line 37 (see attached picture) className: PropTypes.IsOptional<string>; TagCloudFix