plangrid / react-file-viewer

MIT License
523 stars 339 forks source link

Importing "react-file-viewer" is throwing "JavaScript heap out of memory" issue. #146

Open mparupat opened 4 years ago

mparupat commented 4 years ago

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. fileViewerError

joravkumar commented 4 years ago

@mparupat I am facing same issue.

imdm04 commented 4 years ago

@mparupat +1

treetopvt commented 4 years ago

same issue here. Basic Create React App with few dependencies. npm run start and npm run build both failing with memory heap limits.

Swaminathan15P150 commented 4 years ago

I'm also facing the same issue.

HassanTarique27 commented 4 years ago

Run this command in react terminal. "set " for Windows and "export" for Linux set NODE_OPTIONS=--max_old_space_size=4096