react-file-viewer
react-file-viewer copied to clipboard
Importing "react-file-viewer" is throwing "JavaScript heap out of memory" issue.
Hi,
I am trying to use File Viewer in my application. I have added it to my node modules and when i am trying to import it in my component import "FileViewer from 'react-file-viewer';" it is giving Javascript heap out of memory issue. I tried with "0.5.0" version and latest version too. I tried to install few dependencies like webpack ( i using createReactNew so installed webpack externally for FileViewer) and autoprefixer in my node module and tried to execute. Still i am getting same error. Kindly let me know if i am missing anything.
@mparupat I am facing same issue.
@mparupat +1
same issue here. Basic Create React App with few dependencies. npm run start and npm run build both failing with memory heap limits.
I'm also facing the same issue.
Run this command in react terminal. "set " for Windows and "export" for Linux set NODE_OPTIONS=--max_old_space_size=4096