“fs.createReadStream() is not a function” error(Javascript)
问题 In my project of web development i need to use fs.createreadstream() function but >unfortunately filesystem is not availabe for browsers as of my knowledge. I tried >using level-filesystem,file-sytem,level-fs packages but everytime Im getting the >createreadstream() is not a function error .How to handle this problem??? 回答1: I believe the browserify utility will allow you to use node.js style require statements like: var fs = require('fs'); 来源: https://stackoverflow.com/questions/38468205/fs