lukeaus / plain-tree

A JavaScript tree library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hassaannoor opened this issue · comments

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.

@hassaannoor thanks for creating the issue. I don't have much time at the moment, do you want to take a crack at creating a fix PR?