question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Missing Function] ctx.renderNotFound()

See original GitHub issue

Based on the docs we should have a function called crx.renderNotFound() available in a route handler.

I’m using the newest version of fresh to date, as far as I know this should be 1.0.2.

But my typescript complains about renderNotFound not being a function: Bildschirmfoto 2022-09-05 um 20 58 52

I wanted to use it like this: Bildschirmfoto 2022-09-05 um 20 55 38

This is the file on the branch which is broken: https://github.com/codemonument/blog.codemonument.com/blob/2022-09-05_switch-to-fresh/routes/posts/[post].tsx

Thank you for this framework!

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lucacasonatocommented, Sep 6, 2022

Yeah, that is the intention. Slipped through this time though. Sorry!

2reactions
lino-levancommented, Sep 6, 2022

I realize that this feels really frustrating for consumers of fresh. @lucacasonato is there any chance we could avoid updating fresh.deno.dev until we push the feature updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

missing function - RDocumentation
missing can be used to test whether a value was specified as an argument to a function.
Read more >
Callback for join command is missing "ctx" parameter
ClientException: Callback for join/leave command is missing "ctx" parameter. Here's the code i have: import discord from discord.ext import ...
Read more >
SFDC Submission - Task 5 | Kaggle
isFunction(obj) ? obj : template; function template() { return String(obj); } }, defer: ... function renderNotFound(query) { var template = this.templates.
Read more >
JavaScript promised-mongo Examples - HotExamples
JavaScript promised-mongo - 30 examples found. These are the top rated real world JavaScript examples of promised-mongo.default extracted from open source ...
Read more >
Custom function missing argument - PyTorch Forums
The previous code gives me TypeError: forward() missing 1 required positional argument: 'target' . This seems to happen because it takes ctx ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found