avro-schema-viewer
avro-schema-viewer copied to clipboard
Cannot run viewer
After running yarn install then yarn start-app get lots of errors of the form
ERROR in node_modules/@types/lodash/common/array.d.ts(176,44): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(186,44): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(227,58): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(237,59): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(732,46): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(742,46): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(784,48): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(794,48): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(1782,62): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(1788,67): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(1809,86): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(1813,66): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(1819,86): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/array.d.ts(1823,71): error TS2304: Cannot find name 'unknown'. node_modules/@types/lodash/common/common.d.ts(12,20): error TS2370: A rest parameter must be of an array type. node_modules/@types/lodash/common/common.d.ts(21,20): error TS2370: A rest parameter must be of an array type. node_modules/@types/lodash/common/common.d.ts(97,21): error TS2370: A rest parameter must be of an array type. node_modules/@types/lodash/common/common.d.ts(190,35): error TS2370: A rest parameter must be of an array type. node_modules/@types/lodash/common/common.d.ts(200,40): error TS2370: A rest parameter must be of an array type.
I am not a js/node developer so I may be doing something dumb. I assume it's a dependency issue but nothing I have tried works. Any thoughts/fixes gratefully received.
I removed @types lodash https://github.com/bolcom/avro-schema-viewer/blob/master/package.json#L45 and increased the other lodash version to 4.17.15 https://github.com/bolcom/avro-schema-viewer/blob/master/package.json#L50 and it compiled but it still wouldn't load my schema in. My schemas span more than one file so that might be why. Hope this helps for you