In my project (using the ionic-framework 3) I have used following statement to require the dialogflow module:
const dialogflow = require('dialogflow');
On compilation it's throwing the following error:
cannot find name 'require'.
How can I resolve this?