Skip to content

Packages required using relative file paths causes issues when using workspaces #2188

Closed
@paprikati

Description

@paprikati

If you have conflicting versions of packages in your project for whatever reason, then requiring them 'relatively' is dangerous as the file structure might be different.

For example, in connection-fast at line 15, you have

const { parse, serialize } = require('../../pg-protocol/dist')

This relies on these packages being installed inside the same node_modules folder, which I believe isn't a safe assumption

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions