Home > Software design >  Is creating an email application possible with angular?
Is creating an email application possible with angular?

Time:12-15

Is creating an email application possible with angular?

I tried implementing nodejs script but it's not working due to using nodejs script inside angular ts file, giving me the following Error: Module not found: Error: Can't resolve 'imap'

Any help or guide would be much appreciated. Thanks

CodePudding user response:

You cannot use modules which depend on Node.js features from a browser. The imap module depends on such a feature: it requires the ability to make raw network requests.

The block here is at a lower-level than Angular.

You could replace direct IMAP (and SMTP) access with a web service since browsers support HTTP and WebSockets.

  • Related