4 ms·
Node's fs library changed within the last 2 years. I copy pasted code and it failed.
by acover 9y ago
Node's fs library changed within the last 2 years. I copy pasted code and it failed.
- iends 9y agoI guess you’re talking about well published changes resulting in new major versions being released?
- the_common_man 9y agoUsually those things are pretty solid especially wrt backwards compat. I am curious as to what you copy/pasted and how it failed.
- always_good 9y agoExample?
- deleted 9y ago[deleted]
- mmcnl 9y agoTo be fair, you shouldn't be copy pasting code anyway. But I do understand your feelings, any tutorial from before 2016 probably isn't relevant anymore.
- acover 9y agoI remember the error now. I was using an older version of node (installed via apt) but the current version of the documentation. Stupid mistake. Please ignore.