Posts

Showing posts from April, 2022

RangeError: Maximum call stack size exceeded | Node JS | SPFX React

Image
I literally had no idea that my minor experiment can ruin my 10 hours in troubleshooting. However, at the end, you learn something new. I am currently developing a project in SPFX - React to build a customized portal for a client. Later today i modified a config file in the SPFX project called "config.json" to include a new script file. Everything worked perfect until I stopped the debugging and start it again after some time. When I ran Gulp Serve I start seeing below error when Node tried to start "webpack" await Promise.all(externalModule.globalDependencies.map(async (dependencyName) => { RangeError: Maximum call stack size exceeded and some other errors like below. This is probably not a problem with npm. There is likely additional logging output above. npm ERR ! A complete log of this run can be found in : Googled around and found few solutions like clearing NPM cache with  npm cache clean --force and deleting package-lock.json,  then ran npm install ag