Skip to content Skip to sidebar Skip to footer

Fs.createreadstream Is Not A Function

Here is my snippet: import axios from 'axios'; import FormData from 'form-data'; var fs = require('fs'); submitCareerForm(e){ e.preventDefault(); let formData = n

Solution 1:

The fs module for Node.js is only available for server side applications. When you use it in a web browser for client side applications, it will throw an error.


Post a Comment for "Fs.createreadstream Is Not A Function"