Skip to content
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

TypeError: backend.releases is not a function #11

Open
baconbrad opened this issue Dec 22, 2023 · 0 comments
Open

TypeError: backend.releases is not a function #11

baconbrad opened this issue Dec 22, 2023 · 0 comments

Comments

@baconbrad
Copy link

I am using something like:

const Pecans = require("@dopry/pecans").Pecans;
const pecans = new Pecans(config.updates);
app.use('/updates', pecans.router);

And I am getting:

this.releasesCache[this.getCacheKey()] = backend.releases();   
                                                         ^
TypeError: backend.releases is not a function
    at new Pecans

I am not too familiar with TypeScript to debug it further but it is causing Pecans to not work completely. My config.updates is valid and works with Nuts. Can I have some assistance in resolving this issue? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant