Expo fails to build, MaxListenersExceeded

So i tried running expo build:android and in console i get Request failed with status code 413, when i go to Metro bundler in browser i have error

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit

I tried solvng by using emitter.setMaxListeners() but i got

You attempted attempted to import the Node standard library module "events" from "components\FirstView.js". It failed because React Native does not include the Node standard library. Read more at https://docs.expo.io/versions/latest/introduction/faq.html#can-i-use-nodejs-packages-with-expo

Does anyone know how to solve this ?

Hey @ahmetovicajdin,

Do you have any abnormally large file sizes for your assets or a large quantity of assets in your project?

Cheers,
Adam

I have one obj file about 50MB. Is that a problem ? I will try without it.

It worked Thanks @Adam!

Awesome, @ahmetovicajdin! Glad to hear that.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.