Browserify with require('fs-extra') and upon loading bundle.js throws Uncaught TypeError: Object prototype may only be an Object or null: undefined

393 views Asked by At

This issue is only specific to fs-extra module. When i try to load browserified bundle.js in html, the error shows up.

bundle.js:2483 Uncaught TypeError: Object prototype may only be an Object or null: undefined
    at Function.setPrototypeOf (<anonymous>)
    at bundle.js:2483
    at patch (bundle.js:2485)
    at patch (bundle.js:1949)
    at Object.<anonymous> (bundle.js:1941)
    at Object.<anonymous> (bundle.js:2220)
    at Object.31../clone.js (bundle.js:2220)
    at o (bundle.js:1)
    at bundle.js:1
    at Object.14../copy (bundle.js:803)
0

There are 0 answers