This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Webpack imports #3783
Closed
Description
- Version: 51.0.1
- Platform:
- Subsystem:
Severity: Low
Description:
I'm trying to import ipfs-http-client
from a React project that uses webpack and seeing:
➤ YN0000: ERROR in ../node_modules/multiaddr/src/ip.js 4:27-59
➤ YN0000: ℹ 「wdm」: Failed to compile.
➤ YN0000: Module not found: Error: Package path ./to-string is not exported from package .../node_modules/uint8arrays (see exports field in .../node_modules/uint8arrays/package.json)
➤ YN0000: @ ../node_modules/multiaddr/src/convert.js 3:11-26
➤ YN0000: @ ../node_modules/multiaddr/src/codec.js 3:16-36
➤ YN0000: @ ../node_modules/multiaddr/src/index.js 3:14-32
➤ YN0000: @ ../node_modules/ipfs-http-client/src/index.js 5:22-42
Any ideas on webpack config? I saw this issue ipfs-inactive/js-ipfs-http-client#968 but unclear if relevant.