Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should not import the named export 'name' (imported as 'name') from default-exporting module. #76

Open
harshad-kathiriya opened this issue Jul 18, 2023 · 2 comments

Comments

@harshad-kathiriya
Copy link

harshad-kathiriya commented Jul 18, 2023

Hello Team,

I am getting error in console for web version when trying with your demo project. I am not able to launch web3auth authentication window due to this issue. It is working fine in mobile phone or expo go app.

WARNING in ./node_modules/react-native-url-polyfill/index.js:11:40
Should not import the named export 'name' (imported as 'name') from default-exporting module (only default export is available soon)   9 |
  10 | export function setupURLPolyfill() {
> 11 |   global.REACT_NATIVE_URL_POLYFILL = `${name}@${version}`;
     |                                        ^
  12 |
  13 |   polyfillGlobal('URL', () => require('./js/URL').URL);
  14 |   polyfillGlobal(

WARNING in ./node_modules/react-native-url-polyfill/index.js:11:48
Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon)
   9 |
  10 | export function setupURLPolyfill() {
> 11 |   global.REACT_NATIVE_URL_POLYFILL = `${name}@${version}`;
     |                                                ^
  12 |
  13 |   polyfillGlobal('URL', () => require('./js/URL').URL);
  14 |   polyfillGlobal(

web compiled with 2 warnings

image

Demo link:
https://github.com/Web3Auth/web3auth-react-native-sdk/tree/master/demo/rn-expo-example

can someone please help to resolve this issue?

@arch1995 @chaitanyapotti

@chaitanyapotti
Copy link
Member

This package is not intended for web usage. Pls use the web SDK for that

@harshad-kathiriya
Copy link
Author

@chaitanyapotti we are already using this package "@web3auth/react-native-sdk": "3.5.0" for web with expo v47. But after upgrading to expo v48, its started throwing the error. Is there any version issue with react-native sdk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants