pubnub / pubnub-angular2

Other
32 stars 13 forks source link

Issue pubnub not found in version 1.2.0 #27

Closed namnn closed 6 years ago

namnn commented 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.

namnn commented 6 years ago

never mind, just a note that for angular4 you need to run npm install pubnub as well (not angular2 like what the README says)