8000 Bad package reference causes error on upstream builds · Issue #639 · socketio/engine.io · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bad package reference causes error on upstream builds #639
Closed
@jasonkenneth

Description

@jasonkenneth

We're keeping our dependencies up to date on an Angular 12 / nestjs / nrwl monorepo application. When I upgraded to the latest versions of socket.io, I get a build error from within node_modules.

Error: node_modules/engine.io/build/transport.d.ts:4:10 - error TS2305: Module '"engine.io-parser"' has no exported member 'Packet'.

4 import { Packet } from "engine.io-parser";
           ~~~~~~

It turns out it's because the vLatest of engine.io actually requires at least engine.io-parser v5.0.3, but the reference only pulls ~5.0.0. If I install engine.io-parser directly in my app to 5.0.3, the build error disappears.

"engine.io-parser": "~5.0.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0