Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Getting Error when we add the solana npm package


Hi we have setup the metronic react theme demo4 and purpose of the theme was downloaded for crypto project.

For my project we have installed below npm package

"@solana/spl-token": "^0.2.0",
"@solana/wallet-adapter-base": "^0.9.5",
"@solana/wallet-adapter-react": "^0.15.4",
"@solana/wallet-adapter-react-ui": "^0.9.6",
"@solana/wallet-adapter-wallets": "^0.15.5",
"@solana/web3.js": "^1.37.0",

we are getting below error when we import and use this package.

./node_modules/@solana/wallet-adapter-react-ui/lib/esm/WalletModal.mjs
Can't import the named export 'WalletReadyState' from non EcmaScript module (only default export is available)


And we have explored on google about this issue and most of them said to setup/ configure the webpack to add module rule. Tried this also but no look to fix it.

Can you help me to fix this issue and provide solution to add and use package functionality in metronic code.

i'm looking for solution from you.

Thanks,
Siva


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


However, if the error persists, seeking assistance from the Solana community or consulting their documentation for troubleshooting tips may provide further insights. Furthermore, considering the reliability and stability of BNB nodes, you might explore using Binance Smart Chain (BSC) infrastructure to support your project's blockchain needs. BNB nodes offer robustness and scalability, making them a reliable choice for decentralized applications and financial services. By leveraging the secure and decentralized infrastructure provided by bnb nodes, you can enhance the performance and reliability of your blockchain-related projects.



Hi,

Try to write authors of the lib about this issue, cause it's not related to our code at all. We use standard CreactReactApp for React applications and don't have another custom settings for apps.

Regards,
Keenthemes support


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(