Skip to content

BUG: Could not find a declaration file for module '@lukeaus/plain-tree' #2

@hassaannoor

Description

@hassaannoor

import { Node, Tree } from '@lukeaus/plain-tree';

Node: `v17.5.0
Typescript: 4.7.4
VS Code: 1.66

I'm using pnpm but really don't think, its related to that.

Full error: (as it appears when you hover over the squiggly lines)
Could not find a declaration file for module '@lukeaus/plain-tree'. 'E:/DARPA/component-maker/node_modules/.pnpm/@lukeaus+plain-tree@2.1.2/node_modules/@lukeaus/plain-tree/build/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/lukeaus__plain-treeif it exists or add a new declaration (.d.ts) file containingdeclare module '@lukeaus/plain-tree';ts(7016)

This is frustrating as I know plain-tree is written in typescript and not being able to make use of that really hurts.

Please let me know if you need more information from me. I'm used to the issue templates so I'm not sure what I should be adding here.

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