mafintosh / is-my-json-valid

A JSONSchema validator that uses code generation to be extremely fast
MIT License
965 stars 111 forks source link

ERROR: Cannot read property 'concat' of undefined #156

Closed chrisrink closed 6 years ago

chrisrink commented 6 years ago

I saw this error when running eslint(4.1.1). This just happened So I think this had to do with the recent bump to 2.17

FO] TypeError: Cannot read property 'concat' of undefined
06:40:46  [INFO]     at visit (MyModule/node_modules/is-my-json-valid/index.js:366:69)
06:40:46  [INFO]     at /MyModule/node_modules/is-my-json-valid/index.js:435:9
06:40:46  [INFO]     at Array.forEach (native)
06:40:46  [INFO]     at visit (MyModule/UIPlatform/node_modules/is-my-json-valid/index.js:434:18)
06:40:46  [INFO]     at MyModule/node_modules/is-my-json-valid/index.js:543:9
06:40:46  [INFO]     at Array.forEach (native)
06:40:46  [INFO]     at visit (MyModule/node_modules/is-my-json-valid/index.js:540:31)
06:40:46  [INFO]     at visit (MyModule/node_modules/is-my-json-valid/index.js:366:7)
06:40:46  [INFO]     atMyModule/node_modules/is-my-json-valid/index.js:543:9
06:40:46  [INFO]     at Array.forEach (native)
06:40:46  [ERROR] 
chrisrink commented 6 years ago

Looks like this is fixed in 2.17.1 per https://github.com/mafintosh/is-my-json-valid/issues/155 and my local testing.