-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Using Dashport as a middleware leads to compile error #44
Comments
Hey, sorry this response is so delayed, things can get hectic. I am not sure if this remedies your issue, but I looked into it and seemed to have issues with deno.land not serving the most recent version if you do not specify. I would recommend trying to just import V1.2.0 and see if you have any progress. if not I am happy to take a closer look at your code and figure out is triggering this bug with dashport. -Alex |
Unfortunately the issue still persist:
The imports I am using are:
|
@finlaydotb I had the same issue, but it looks like it's a typescript definitions mismatch between what Oak wants and what Dashport gives. I can't dig too much deeper but the following worked for me: import {
Application,
Router,
RouterMiddleware,
} from "https://deno.land/x/oak/mod.ts";
...
router.get(
"/auth/google",
dashport.authenticate(
googleStrat,
serializer,
deserializer
) as RouterMiddleware
); |
Hey Finlay! Sorry for the delay. I'm having trouble replicating your specific issue. What other info could you give me about your setup? |
Hey @sportelance sorry also for the late response. Strangely enough @royletron suggestion to type cast to |
I'll keep this issue open as I am not sure manually casting to |
Okay, upgraded my version of deno ( 1.9.2) and oak (7.4.0), and the Any insight on this issue? and is there a recommended version of oak to use with each corresponding dashport version? Could not see any version matrix in the readme. Update: oak version 6.5.0 seems to be the oldest version in which the |
I am also facing the same issue. Getting |
Hey guys, |
@sportelance thanks for the update. I'll stick with Oak 6.5.0 even though I still need to have the
Godspeed! Thanks! |
I'm now getting
which I /think/ means that DashportOak is expecting the latest version of Oak, even though it does not work with it? (Apologies if that's wrong, I'm pretty new to Deno) |
|
Hi there 👋
First all, thanks for making this library. Looks like the perfect thing I need for my use case. The only problem now is that I am following the documentation and it does not seem to work. In the documentation you see the following lines:
But if I do so, I get the following compilation error
Any ideas what could be going wrong? Thanks!
The text was updated successfully, but these errors were encountered: