Ryan Skraba created AVRO-4350:
---------------------------------

             Summary: [javascript] npm [email protected] missing underscore
                 Key: AVRO-4350
                 URL: https://issues.apache.org/jira/browse/AVRO-4350
             Project: Apache Avro
          Issue Type: Bug
          Components: javascript
            Reporter: Ryan Skraba


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')”

or 

docker run -it node:10 bash -c "npm install [email protected] && node -e 
\"require('avro-js')\""



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to