0
votes

I'm getting these errors when I'm running npm run build by just importing videojs and videojs-record. Yes, I removed my codes and leave just the imports.

enter image description here

I've increased memory to 8gb with:

export NODE_OPTIONS="--max-old-space-size=8192"

but the error persisted.

I tried rebooting my EC2 instance with no progress.

I'm following this.

enter image description here

Btw, when I build on local machine, it's building just right. Error occurs only on nginx. Please help. Thank you.

1

1 Answers

0
votes

Solved. I updated t2.micro to t2.medium in my EC2 instance. Never thought of it. How stupid. haha