lens-protocol / lens-sdk

The official SDK to interact with the Lens Protocol
https://docs.lens.xyz/docs/what-is-lens
MIT License
233 stars 73 forks source link

Module not found: Error: Can't resolve '@xmtp/react-sdk' on react-web 1.3.0-next.5 #486

Closed moesalih closed 1 year ago

moesalih commented 1 year ago

Describe the bug Updating from @lens-protocol/react-web 1.3.0-next.4 to 1.3.0-next.5 causes this error when running the app: Module not found: Error: Can't resolve '@xmtp/react-sdk'

Do I have to explicitly add @xmtp/react-sdk as a dependency?

cesarenaldi commented 1 year ago

it's an optional peer dependency... you should not need to have it unless you use the corresponding hooks.

I'll review the import path tomorrow morning... in the meantime if you add the exact XMTP SDK dependency (still in preview from XMTP) it should sort your install.

cesarenaldi commented 1 year ago

Fix landing soon: https://github.com/lens-protocol/lens-sdk/pull/487

cesarenaldi commented 1 year ago

The XMTP issue is fixed in 1.3.0-next.7 if your are interested to try it.

cesarenaldi commented 1 year ago

@moesalih happy to close this issue?