console.log(require.cache) fails when koa is present
See original GitHub issuekoa = 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:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@skbolton you can use the
#605
which automatically links the issue or pull request: #605 (also your link doesn’t work)Learn something everyday, fixed.