I was trying to implement upload image functionality in a form, using this as an example. It was working till I reached the part let fs = require('fs');
where i encountered the following error "Module not found: Error: Can't resolve 'fs' in...".
There is a thread on stackoverflow, mentioning the solution for it to use "target": "node"
which does not apply for me as I am building a web application.
So I was hoping If someone can point me in the right direction; and let me know which is the proper or the best way to implement image uploading in forms, as I am new to Node JS, and running into errors I can't find solutions for.