Skip to content

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

@harshad-kathiriya

Description

@harshad-kathiriya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions