I'm using babel as a part of ember-cli, had to use ember-browserify to be able to import better-assert, but now I get fs.readFileSync is not a function
because this is a browser, of course.
before calling assert
cat.js:7 called assert
cat.js:11 caught errTypeError: fs.readFileSync is not a function
at assert (http://localhost:4200/assets/vendor.js:65236:16)
at Module.callback (http://localhost:4200/assets/dynamic-segments.js:385:35)
at Module.exports (http://localhost:4200/assets/vendor.js:131:32)
at requireModule (http://localhost:4200/assets/vendor.js:30:18)
at Class._extractDefaultExport (http://localhost:4200/assets/vendor.js:144697:20)
at Class.resolveOther (http://localhost:4200/assets/vendor.js:144432:32)
at Class.superWrapper (http://localhost:4200/assets/vendor.js:35482:22)
at Class.resolve (http://localhost:4200/assets/vendor.js:16205:43)
at resolve (http://localhost:4200/assets/vendor.js:12565:36)
at Object.resolve (http://localhost:4200/assets/vendor.js:12025:21)