You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This code:
importassertfrom'npm:better-assert'try{console.log('before calling assert')assert('true')console.log('called assert')assert(false)console.log('called with false')}catch(e){console.log('caught err'+e.stack)}
Prints this:
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)
Ember goliath generates horrible stack trace! 💯 :)
Going to fork and see what I can do..!
The text was updated successfully, but these errors were encountered:
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.This code:
Prints this:
Ember goliath generates horrible stack trace! 💯 :)
Going to fork and see what I can do..!
The text was updated successfully, but these errors were encountered: