Ionic 4 + Nodejs: Module not found: Error: Can’t resolve 'dgram' in

Asked

Viewed 121 times

1

I’m creating an app using Ionic 4.
In this application I need to use some libraries of Nodejs: dgram, fs, path and among others. But when I run my application, it returns an error message

Module not found: Error: Can't resolve 'dgram' in.... 

This happens to all libraries in the Nodejs.

In some research I identified that the Ionic 4 do not support the Nodejs, since, apk is created with the Cordova plugin.

Note: I also have this problem in the angular 7.

Does anyone know if it is possible to solve this problem?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.