You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I import in my bundle pusher-js, this following error is thrown 'window is not defined' - I guess it could be easily fixed by modifying webpack config
Also As noted by @ hph in #183 "window is not defined" error when using webpack + pusher-js + react" the solution that issue was closed with isn't ideal even for SSR, and won't work for use cases like mine.
Excellent, in that case I'll consider this issue closed for now, although I think we should try to find a better solution.
The text was updated successfully, but these errors were encountered:
Will use the build of pusher-js for the web runtime, rather than the worker runtime. In order to resolve this, we'll need to provide an entrypoint for the worker runtime, similar to how we expose the pusher-with-encryption bundle
This should solve issue #499.
It should be possible to import the worker build using
```
import Pusher from 'pusher-js/worker'
```
or
```
import Pusher from 'pusher-js/worker/with-encryption'
```
Right now in workers i have to externally importScript from cdn instead of pusher being a part of my bundle because it throws
window is not defined
.v/s
If I import in my bundle
pusher-js
, this following error is thrown 'window is not defined' - I guess it could be easily fixed by modifying webpack configAlso As noted by @ hph in #183 "window is not defined" error when using webpack + pusher-js + react" the solution that issue was closed with isn't ideal even for SSR, and won't work for use cases like mine.
The text was updated successfully, but these errors were encountered: