xmtp / xmtp-js

XMTP client SDKs for JavaScript applications.
https://xmtp.org/docs
210 stars 38 forks source link

Bug: Module not found: Can't resolve '@xmtp/xmtp-js' #515

Closed emmajane1313 closed 8 months ago

emmajane1313 commented 8 months ago

Describe the bug

This error started showing up today in my nextjs app that's using the @xmtp/react-sdk packet v^4.0.0. All deployments prevously havent caused any errors, just showed up today when running npm run build (and without changing any other packets or versions in the packge.json).

Did something update or is there a breaking change implemented?

Clearing cache, nm, package-lock, .next and rebuilding doesnt solve it. Nor does downgrading.

I was previously only using the @xmtp/react-sdk but also downloaded the @xmtp/xmtp-js packet to see if this would result in a fix, unfortunately it hasn't.

Versions:

"@xmtp/react-sdk": "^4.0.0",
 "@xmtp/xmtp-js": "^11.3.3",
 "eslint": "^8",
"eslint-config-next": "13.5.4",
"postcss": "^8",
"tailwindcss": "^3",
"ts-loader": "^9.5.1",
"typescript": "^5"
"viem": "1.20.0",
"wagmi": "1.4.12",
"ethers": "^6.8.1",
"next": "13.5.4",

Expected behavior

App to build when using @xmtp/react-sdk.

Steps to reproduce the bug

No response

rygine commented 8 months ago

apologies for the error. a recent update did not include a path update. #516 should fix the issue.

github-actions[bot] commented 8 months ago

:tada: This issue has been resolved in version 11.3.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

emmajane1313 commented 8 months ago

awesome, working again

emmajane1313 commented 8 months ago

@rygine I think the lastest version is exposing another error ,getting this:

/node_modules/@xmtp/xmtp-js/dist/index.js:7
import { keccak256 } from 'js-sha3';

this is for versions:

"@xmtp/react-sdk": "^4.0.0",
"@xmtp/xmtp-js": "^11.3.4",