I am trying to import the Bonjour library in my Ionic 2 angular application. I have typings installed for both node and bonjour.
When importing the library, the error ‘cannot find module ‘dgram’’ comes up. It seems to be related to the typescript because the dgram module should already be present.
I also posted a stackoverflow question for reference:
What have I tried
I tried importing dgram using:
import * as dgram from 'dgram'
I tried including the reference file manually
I tried adjusting the webpack.config file
I specified both libs node and bonjour in my types.config file