-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module '"pusher-js"' has no exported member 'Config' #25
Comments
FWIW, I got around this for now… (I'm using .ts files for tests) import Pusher from 'pusher-js'
const PusherMock = require('pusher-js-mock').PusherMock
const pusher = new PusherMock() as Pusher |
Hey, @snaptopixel, thanks for creating an issue about this! @mayteio can you help out on this one? I see that the |
Hey @nikolalsvk, if you want to roll back to drop support for custom authorization that's your call. Personally I feel the package should replicate the real thing as much as possible, which is what I was trying to achieve with custom auth (we used custom auth in our project thus the need to mock it). If it's a simple case of switching the |
Thanks for responding, @mayteio. Do you think we could achieve a similar thing without being dependant on the pusher-js? For example, can we try to support custom authorization without import |
OK, so this problem is because It gives to reason that if someone is using A good example is in the 'presence-channel' example where the official I've created #29 to remove the This test case can be removed in future versions. It's probably worth noting that the project relies on itself via the examples. The examples should probably have their own package.json to avoid this. |
This should not happen now with the new 0.3.2 version. Can you check @snaptopixel when you have time? I'll close this in the meantime and reopen if it's not fixed. |
Using Typescript with these versions will not compile:
Pusher mock's types specify:
import { Config } from "pusher-js";
butConfig
is not exported in this version ofpusher-js
The text was updated successfully, but these errors were encountered: