xmtp / xmtp-js

XMTP client SDKs for JavaScript applications.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Error: 'GetRefreshJobRequest' not found in '@xmtp/proto' when using xmtp-js v11 in Create-React-App project

fabriguespe opened this issue · comments

Describe the bug

When using xmtp-js version 11 in a create-react-app project, an error occurs during the build process. The error is as follows:

ERROR in ./node_modules/@xmtp/xmtp-js/dist/web/index.js 2107:42-83
export 'keystore'.'GetRefreshJobRequest' (imported as 'keystore') was not found in '@xmtp/proto' (possible exports listed)
CleanShot 2023-10-14 at 10 06 33@2x

Expected behavior

The expected behavior is a successful build without any import errors related to xmtp-js and its dependencies.

Steps to reproduce the bug

  1. Create a new project using create-react-app
    Or use this created for the issue create-react-app-xmtp-js-11
  2. Install xmtp-js version 11 via npm
  3. Run npm start to build the project.
  4. Observe the mentioned build error.