Skip to content

Missing @types/unist in package.json dependencies #3

@alvinleung1996

Description

@alvinleung1996

Initial checklist

Affected packages and versions

mdast-util-directive 2.1.1

Link to runnable example

No response

Steps to reproduce

When using Yarn with strict PnP mode, complex-types.d.ts cannot import unist because @types/unist is not explicitly listed in the package.json dependencies field. This causes the interfaces TextDirective, LeafDirective and ContainerDirective to be incomplete because they cannot resolve the parent interface Parent from unist.

Expected behavior

@types/unist is explicitly listed in the package.json dependencies field.

Actual behavior

@types/unist is not explicitly listed in the package.json dependencies field.

Runtime

Node v16

Package manager

Other (please specify in steps to reproduce)

OS

Linux

Build and bundle tools

Webpack

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions