Skip to content

Reopen "Do not require presence of package.json in dependencies #1361" #5820

@okwme

Description

@okwme

Describe the feature

I think #1361 is still an issue.

I was able to install https://github.com/rob-Hitchens/OrderStatisticsTree using:

yarn add https://github.com/rob-Hitchens/OrderStatisticsTree.git

despite the fact the project does not contain a package.json.

I'm able to successfully import it into my code—at least according to my IDE and the Juan Blanco solidity linter.
However the hardhat compiler says it Cannot find module 'OrderStatisticsTree/package.json' then HH401: Library OrderStatisticsTree is not installed. then HH411: The library OrderStatisticsTree, imorted from ..., is not installed. Try installing it using npm.

I'd love to avoid copy and pasting the code directly but seems that's the only option atm?

Search terms

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions