react-file-viewer icon indicating copy to clipboard operation
react-file-viewer copied to clipboard

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

Open mparupat opened this issue 4 years ago • 5 comments

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

mparupat avatar Apr 22 '20 06:04 mparupat

@mparupat I am facing same issue.

joravkumar avatar Apr 23 '20 12:04 joravkumar

@mparupat +1

imdm04 avatar May 07 '20 15:05 imdm04

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

treetopvt avatar Jun 01 '20 19:06 treetopvt

I'm also facing the same issue.

Swaminathan15P150 avatar Jun 02 '20 10:06 Swaminathan15P150

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

HassanTarique27 avatar Jun 05 '20 10:06 HassanTarique27