Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: socketio/socket.io-parser#132 [1]: ba6b56d
- Loading branch information
e6aa1a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darrachequesne Ideally this would look something like this: