Closed ValentinCreative closed 9 years ago
I and having this issue myself. I have 11 HTML files, and it is having issues w/ those because it's more than 10: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
I would recommend changing the bug title to NodeJS 'EventEmitter' error
because what you have makes it look like you cannot generate the error.
Same here, what's the best way to avoid this?
Sorry for the late reply.
I switched from async.each to async.eachLimit with a limit of 10 concurrent operations. This should solve the issue.
Relevant line in code is https://github.com/dwightjack/grunt-premailer/blob/master/tasks/premailer.js#L95
Let me know if issue is fixed
Are you saying change it on our end, build, and see if that fixes the issue then get back to you?
Hi,
nope. I already pushed it in a patch version. Else, if you want to give it just a try without updating you can apply the patch at your current version
I'm getting this same error on the latest release (0.2.13). Per the comment above, I changed the async.eachLimit
concurrent operations value to 5 instead of 10 and the error went away.
Hi,
when i try to generate my emails, I got this error :
And my generated file just got a doctype.