colyseus / uWebSockets-express

Express API compatibility layer for uWebSockets.js
https://npmjs.com/package/uwebsockets-express
MIT License
56 stars 13 forks source link

Could not find a declaration file for module 'uwebsockets-express'. #36

Closed Byloth closed 2 months ago

Byloth commented 2 months ago

I'm experiencing this error after upgrading to the latest version 1.3.9:

src/core.ts:8:24 - error TS7016: Could not find a declaration file for module 'uwebsockets-express'. '/home/matteo/colyseus-example/node_modules/uwebsockets-express/build/index.mjs' implicitly has an 'any' type.
  There are types at '/home/matteo/colyseus-example/node_modules/uwebsockets-express/build/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'uwebsockets-express' library may need to update its package.json or typings.

8 import expressify from "uwebsockets-express";
                         ~~~~~~~~~~~~~~~~~~~~~
endel commented 2 months ago

Hi @Byloth, sorry and thanks for letting me know - please stick with version 1.3.6 for now 🙏

I'm updating how to build this project in order to support ESM and it seems build is bad on versions higher than 1.3.6.

Byloth commented 2 months ago

Sure, no problem... I noticed it!
Don't worry... I've already rolled back to the previous version.

This was just to let you know! 😉

endel commented 2 months ago

Thank you for raising this issue so fast, I believe this got fixed on https://github.com/colyseus/uWebSockets-express/commit/a78e8d2b0c8ce56866a063e9788002f728826772 🙏 (1.3.10)