indutny / asn1.js

ASN.1 Decoder/Encoder/DSL
MIT License
181 stars 64 forks source link

Unexpected identifier on version 5.2.0 #131

Open saubhagya23 opened 2 years ago

saubhagya23 commented 2 years ago

Our build is failing with the issue - Uncaught SyntaxError: Unexpected identifier

On debugging we found that the issue was being generated from one of the dependencies used with in webpack namely asn1. The module is not getting compiled properly which is generating the issue in build. Please refer the screenshots below.

Screenshot 2021-09-27 at 10 39 06 AM Screenshot 2021-09-27 at 1 04 40 PM

My dependency tree is

-- webpack@4.43.0
  -- node-libs-browser@2.2.1
    -- crypto-browserify@3.11.0
      -- browserify-sign@4.0.0
        -- parse-asn1@5.1.5
          -- asn1.js@5.2.0

Please help us resolve this.