-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rollup compilation exporting error #4271
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
I have been dealing with a similar issue and finally fix it. Error
Versions
My solution
|
It looks like things are referring to MODULE/src/.... during import of types but ./src is not in the exports declaration of each module. I am not quite sure where this should be posted or as a new issue, but when using ipfs within a type=module environment each export needs to be mentioned. For example |
Hello @francesco-gaglione, @pablomendezroyo, & @richtera, js-ipfs is being deprecated in favor of Helia. You can learn more about this deprecation and the corresponding migration guide here. As a result, we are going to close this issue. If you think we have done this in error, please feel to reopen with any comments in the next week as we will circle back on the reopened issues. We hope you will consider Helia for your IPFS in JS needs. If you believe this particular request belongs in Helia, feel free to open a Helia issue. We look forward to engaging with you more there. Thanks, |
Severity: High
Description:
I'm using ipfs-http-client into my custom react components library. In detail I created a .ts script that use the
.create()
method. The library dir structure is this:The manager script is this:
The
src/web3/manager/index.ts
is this:And into the
src/index.ts
:The library is compiled using rollup and these is my configurations:
rollup.config.js
tsconfig.json
package.json
I compile the library with
rollup -c
and the build process is ok, the build is done. But, when I try to use this library (both withnpm install /libPath
andnpm install @scope/libname
) into a next.js frontend I have this error:Why this error? And how to solve it?
The text was updated successfully, but these errors were encountered: