using pipedrive node module in angular application

北慕城南 提交于 2019-12-24 18:21:04

问题


I know this has been asked many times, I'm still struggling to get this done! I'm trying to use Pipedrive client API in my Angular App. Suggested approach on npm site is to use require('pipedrive') but Greatest require doesn't work straightway in angular app. Additionally many posts suggests not to use it. next I tried :

import * as Pipedrive from './../../../node_modules/pipedrive/lib/Pipedrive.js';
 var pipedrive = new Pipedrive.Client('xxxxxxxxxxxxxxx', { strictMode: true });

but shis give me error :

ERROR in ./node_modules/fetch/lib/fetch.js
Module not found: Error: Can't resolve 'dns' in 'C:\Sangeeta\Study Projects\Hello-World\node_modules\fetch\lib'

Can any body point out what I'm doing wrong here?

来源:https://stackoverflow.com/questions/49714435/using-pipedrive-node-module-in-angular-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!