#ignore type error

1 messages · Page 1 of 1 (latest)

strong geyser
#

I switched a project using express to bun and it works fine, but bun logs this to the console:

410 | }
411 | class IncomingMessage extends Readable {
412 |   method;
413 |   complete;
414 | 
415 |   constructor(req, defaultIncomingOpts) {
                             ^
TypeError: Type error
      at new IncomingMessage (node:http:415:26)
      at fetch (node:http:377:26)
OPTIONS - * failed

is there a way to ignore this?

kind steppeBOT
swift void
#

Would you mind sharing your code for how to reproduce this?

strong geyser
#

I'll try to get a small repro

#

@swift void this is it:

const express = require('express');
const rateLimit = require('express-rate-limit');

const app = express();

app.use(rateLimit());
app.get('/', (req, res) => res.send('ok'));

app.listen(3000, () => console.log('Listening on port 3000!'));

Seems like the issue only appears when you use the express-rate-limit package