xmtp / xmtp-js

XMTP client SDKs, content types, and other packages written in TypeScript

Home Page:https://xmtp.org/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: - error Error [TypeError]: getStaticPaths is not a function

fabriguespe opened this issue · comments

commented

Describe the bug

In nexjs im getting this error while importing the client


- error Error [TypeError]: getStaticPaths is not a function
    at buildStaticPaths (/Users/fabrizioguespe/Developer/devrel/xmtp-video/my-app/node_modules/next/dist/build/utils.js:699:39)
    at Object.loadStaticPaths (/Users/fabrizioguespe/Developer/devrel/xmtp-video/my-app/node_modules/next/dist/server/dev/static-paths-worker.js:103:46)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  digest: undefined

Expected behavior

No response

Steps to reproduce the bug

I imported it at the same time of thirdweb

npm install @xmtp/xmtp-js @thirdweb-dev/react

@fabriguespe this doesn't seem related to XMTP, but rather Next.js.