Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
emmajane1313 opened this issue Jan 11, 2024 · 4 comments · Fixed by #516
Closed

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

emmajane1313 opened this issue Jan 11, 2024 · 4 comments · Fixed by #516
Assignees
Labels
bug Something isn't working released

Comments

@emmajane1313
Copy link

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

@emmajane1313 emmajane1313 added the bug Something isn't working label Jan 11, 2024
@rygine
Copy link
Collaborator

rygine commented Jan 11, 2024

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

Copy link
Contributor

🎉 This issue has been resolved in version 11.3.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@emmajane1313
Copy link
Author

awesome, working again

@emmajane1313
Copy link
Author

@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",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants