iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
600 stars 210 forks source link

Javascript heap out of memory error from @bentley/react-scripts #3468

Closed kckst8 closed 2 years ago

kckst8 commented 2 years ago

Describe the bug When starting a web application in dev mode using @bentley/react-scripts (i.e. the iTwin Viewer starter template)

To Reproduce Steps to reproduce the behavior:

  1. From an application that was created from the iTwin Viewer starter template, run "npm start"

Expected behavior Code compiles and the application is served on localhost:3000

Actual behavior OOM error:

Screenshots

image

Desktop (please complete the applicable information):

Additional context The issue does not appear to be present in 3.0.x

Workaround Adding the following environment variables helps to bypass the issue (i.e. in your .env file):

USE_FAST_SASS=true TRANSPILE_DEPS=false DISABLE_TERSER=true

However, this seems to be working around a larger problem

aruniverse commented 2 years ago

Fixed & published in 3.1.2