React Js require ‘fs’

In create-react-app they have stubbed out ‘fs’. You cannot import it.
They did this because fs is a node core module.
You’ll have to find another solution to that problem. See this ticket.

Leave a Comment