Error with @web3auth/single-factor-auth

Hello

I have an error when trying to use "@web3auth/single-factor-auth": "^4.2.0-alpha.0".
I am working with ReactJS 18 with ViteJS.

✘ [ERROR] No matching export in "node_modules/bowser/src/bowser.js" for import "ENGINE_MAP" node_modules/@toruslabs/customauth/dist/customauth.esm.js:16:17: 16 │ import Bowser, { ENGINE_MAP } from 'bowser';



Originally posted by: nisa10880

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1061

Having the same error here



Originally posted by: edwardchew97

Hey there, would recommend using the version ^3.3.0 for now.
Use this example as a reference for creating your project.



Originally posted by: Saviour1001

Hey @nisa10880 @AlexMaio @edwardchew97

We have released a fix to this. Please update your packages to the latest and try again. Let us know if you're still facing the issue.



Originally posted by: shahbaz17

Thanks, it's working now.



Originally posted by: nisa10880

Hey, I have the same problem on my side if you can fix it



Originally posted by: AlexMaio

@web3auth/single-factor-auth depends on @toruslabs/customauth. I think this file should be updated.
https://github.com/torusresearch/CustomAuth/blob/master/src/utils/helpers.ts

There is an import issue.



Originally posted by: nisa10880

This is fixed in the latest version. Pls update



Originally posted by: chaitanyapotti