ipfs / ipfs/js-dag-service

[error] bad ES6 import paths in "modular" example code in README?

Open
#74 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
95
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Disclaimer: I could be wrong about this, because personally.. I only use CommonJS module imports.

But.. I was looking at the [README](https://github.com/textileio/js-ipfs-lite/blob/27271129abbcd0da5bd3274066ca295755343306/README.md#modular) and noticed that the ES6 module import paths don't jive with the directory structure published to [npm](https://cdn.jsdelivr.net/npm/@textile/ipfs-lite@0.1.5/).

Specifically, every instance of:
`from '@textile/ipfs-lite/`

...should be replaced by:
`from '@textile/ipfs-lite/dist/`

..unless ES6 module imports are somehow smart enough to search paths relative to `main` in `package.json` when the verbatim path isn't found, which I highly doubt.. but can't say for sure.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.