ipfs / js-ipfs

IPFS implementation in JavaScript
https://js.ipfs.tech
Other
7.43k stars 1.25k forks source link

Cannot find module './message' or its corresponding type declarations #4297

Closed teacoat closed 1 year ago

teacoat commented 1 year ago

Severity: Critical

Description:

I am updating from ipfs-core 0.14.0 to 0.18.0 and I am getting "Cannot find module './message' or its corresponding type declarations".

image

This happens when attempting to run my Angular app and causes it unable to compile. I am attempting to patch a critical vulnerability reported by dependabot but no version over 0.14.0 works for me.

This ticket on the official forum seems to match up with what I'm seeing: https://discuss.ipfs.tech/t/generated-ambeint-typescript-modules-contain-import-paths-incompatible-with-esmodule/15168

welcome[bot] commented 1 year ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

teacoat commented 1 year ago

hellooooo

kuzdogan commented 1 year ago

I was able to get around this by using require instead of import statements

whizzzkid commented 1 year ago

js-ipfs is being deprecated in favor of Helia. You can follow the migration plan here https://github.com/ipfs/js-ipfs/issues/4336 and read the migration guide.

Please feel to reopen with any comments before 2023-06-05. We will do a final pass on reopened issues afterward (see https://github.com/ipfs/js-ipfs/issues/4336).