Hi there,
There appears to be a problem with the new avro-js 1.12.2 release. On the 
project Jira page, it says to use the mailing list but if this is better of 
being a Jira issue, I can create an account and file it there.

It looks like the underscore dependency was removed as part of a security patch 
but there is still a file in the project that tries to require it 
(https://github.com/apache/avro/blob/2b5fe02502b77fc33c7b2f1a1f8184d46d7700d4/lang/js/etc/deprecated/validator.js#L16).
 This causes an "Cannot find module 'underscore’ “ error whenever you try to do 
a clean install.

You can do a repro with this one liner:

mkdir test && cd test && npm init -y && npm i [email protected] && node -e 
"require('avro-js')”

Happy to contribute a PR to fix this if required.

Stefano



Amazon Web Services EMEA SARL, 38 avenue John F. Kennedy, L-1855 Luxembourg, 
R.C.S. Luxembourg B186284

Amazon Web Services EMEA SARL, Irish Branch, One Burlington Plaza, Burlington 
Road, Dublin 4, Ireland, branch registration number 908705


Reply via email to