Open kyng-cytro opened 4 days ago
Hi. I recently deployed my nuxt app to Cloudflare and I get this error every time I try to register a new subscriber. Class constructor EventEmitter cannot be invoked without 'new'
Class constructor EventEmitter cannot be invoked without 'new'
Here's my function code
export const registerSubscriber = async (subscriber: User) => { const [firstName, lastName] = subscriber.name.split(" "); await novu.subscribers.identify(subscriber.id, { firstName, lastName, email: subscriber.email, ...(subscriber.picture && { avatar: subscriber.picture }), }); };
Probably has something to do with Cloudflare?
No error and the subscriber should be registered successfully
Error Class constructor EventEmitter cannot be invoked without 'new'
My App:
Nuxt Hub/ Cloudflare logs:
Novu SaaS
NA
No response
None
NV-3954 π Bug Report: Class constructor EventEmitter cannot be invoked without 'new'
π Description
Hi. I recently deployed my nuxt app to Cloudflare and I get this error every time I try to register a new subscriber.
Class constructor EventEmitter cannot be invoked without 'new'
Here's my function code
Probably has something to do with Cloudflare?
π Reproduction steps
π Expected behavior
No error and the subscriber should be registered successfully
π Actual Behavior with Screenshots
Error
Class constructor EventEmitter cannot be invoked without 'new'
My App:
Novu version
Novu SaaS
npm version
NA
node version
NA
π Provide any additional context for the Bug.
No response
π Have you spent some time to check if this bug has been raised before?
π’ Have you read the Contributing Guidelines?
Are you willing to submit PR?
None