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](https://private-user-images.githubusercontent.com/1447073/275222333-dd65b180-50bc-42f0-b698-70e364397b29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxODk4MzcsIm5iZiI6MTcyMjE4OTUzNywicGF0aCI6Ii8xNDQ3MDczLzI3NTIyMjMzMy1kZDY1YjE4MC01MGJjLTQyZjAtYjY5OC03MGUzNjQzOTdiMjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjhUMTc1ODU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjdiOGI3YjkyMDc0MTY3NzA1NTBjMzYxZTFlNTY4MDY0OTdjNDJmZTU2YjcxZjI1Yzc2NTg5MjhiYTQwZGYxYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.C_cv6Sq4-lWyEnT5FYn3wz1rJzOt2lBt3jnxUJW0ZVs)
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
- Create a new project using
create-react-app
Or use this created for the issue create-react-app-xmtp-js-11 - Install xmtp-js version 11 via npm
- Run
npm start
to build the project. - Observe the mentioned build error.