Replies: 1 comment 1 reply
-
OpenLogin Adapter is a multi-chain adapter which dynamically imports solana if the current chain namespace is selected as solana. So, it's safe to install @solana/web3.js to your dep list. Alternatively, you can no-op the module (resolve.alias: require.resolve('empty-module') |
Beta Was this translation helpful? Give feedback.
-
Describe the question
I ran the example application according to the following page.
https://web3auth.io/docs/guides/firebase
I was able to run
yarn start
without any problemsBut when I run
yarn build
I get the following errorI would like to know the correct way to handle this issue.
Steps to Reproduce
git clone https://github.com/Web3Auth/examples.git
cd web-core-sdk/custom-authentication/firebase-react-core-example
yarn
yarn build
Expected behavior:
Build succeeds.
Platform Details
Additional context
Actually, we are seeing the same issue in our product.
We have checked our product and the version of
@web3auth/core
and@web3auth/openlogin-adapter
up to v3.3.0 is fine.It seems that this problem occurs when the version is upgraded to v4.x.
I have stopped updating web3auth related packages because of this problem.
As the error message indicates, adding
@solana/web3.js
as a dependency of our product will solve the problem.However, we do not use solana in our product.
Therefore, adding
@solana/web3.js
to our dependencies does not seem to be the right way to handle this.I would like to know the correct way to handle this issue.
Beta Was this translation helpful? Give feedback.
All reactions