SIGN IN SIGN UP
socketio / socket.io UNCLAIMED

Realtime application framework (Node.JS server)

0 0 0 TypeScript

fix: point towards the CommonJS types

In order to fix the following issue:

> error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@socket.io/component-emitter")' call instead.
>
> 1 import { Emitter } from "@socket.io/component-emitter";

This problem was introduced in [1], when reworking the dual packaging.

Related: https://github.com/socketio/socket.io-parser/issues/132

[1]: https://github.com/socketio/emitter/commit/ba6b56de2cd8d3cf705ab35fd8c501b68a7268bd
D
Damien Arrachequesne committed
e6aa1a331c37697b9de7e91b7db286eac245c8d7
Parent: c68478d