yarn add web3.storage, but module not found #2316
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Hey
I'm trying to upload images to IPFS through web3.storage pkg on my NextJS app. I install it with
yarn add web3.storage
, and I'm pretty sure that it exist in the node_modules. But, when I import it, it still showCannot find module 'web3.storage' or its corresponding type declarations.
. Anyone know how to fix?yarn: 1.22.19
![image](https://private-user-images.githubusercontent.com/100332919/273101649-89002453-f2d7-4b7b-a52f-2669a782537a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwOTcxNTgsIm5iZiI6MTczOTA5Njg1OCwicGF0aCI6Ii8xMDAzMzI5MTkvMjczMTAxNjQ5LTg5MDAyNDUzLWYyZDctNGI3Yi1hNTJmLTI2NjlhNzgyNTM3YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQxMDI3MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NjhhN2ZiYjZkNTM3ZDM5NDE5NTIzM2Y4ZDJmMDUwMjdmN2IxNTBmMGY5NjM1NGEzNTY1YTBhMzA2YTQxYjgxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zskFQ_qzD2jBI7AmwTZ10Z7YuwPb19sFezYhrldvT8k)
node: 18.12.0
npm: 8.19.2
nextjs: v13
package.json
The text was updated successfully, but these errors were encountered: