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.

console.log(require.cache) fails when koa is present

See original GitHub issue
koa = require('koa')
console.log(require.cache)

will fail because of the custom inspect implementation in context.js, which uses the custom toJSON, which relies on a properly set this, which is not the case.

not very important. But noteworthy - I guess At least is costed me some time to figure it out.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PlasmaPowercommented, Jan 3, 2017

@skbolton you can use the #605 which automatically links the issue or pull request: #605 (also your link doesn’t work)

0reactions
skboltoncommented, Jan 3, 2017

Learn something everyday, fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Require cache problem/question · Issue #3144 · nodejs/help
Node.js v12.18.1: OS: MacOS Scope runtime: I'm trying to create a JSON file after running node, and then require it. This code works...
Read more >
Part 5 - how to connect a caching database to your Koa Js ...
We'll need to create middleware folder, a cache.js and a crypto.cache.js file, so run the following command in your terminal:.
Read more >
How to handle backend errors from Node/Koa on frontend ...
My frontend, using apollo-client , throws an exception when the backend returns an error after a request ...
Read more >
Koa - next generation web framework for node.js
Introduction. Koa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more...
Read more >
Koa.js - Quick Guide - Tutorialspoint
var koa = require('koa'); var app = new koa(); app.use(function* (){ this.body = 'Hello world!'; }); app.listen(3000, function(){ console.log('Server ...
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