Closed namnn closed 6 years ago
Hi,
I am trying to use the latest version of 1.2.0 for my angular 4 project and got the exact same issue to #26
ERROR in ./node_modules/pubnub-angular2/lib/pubnub-angular4.js Module not found: Error: Can't resolve 'pubnub' in ...
Does anyone have any idea? it seems like require('pubnub') triggers the error.
require('pubnub')
never mind, just a note that for angular4 you need to run npm install pubnub as well (not angular2 like what the README says)
npm install pubnub
Hi,
I am trying to use the latest version of 1.2.0 for my angular 4 project and got the exact same issue to #26
ERROR in ./node_modules/pubnub-angular2/lib/pubnub-angular4.js Module not found: Error: Can't resolve 'pubnub' in ...
Does anyone have any idea? it seems like
require('pubnub')
triggers the error.