# \[Archive\] Cannot create new OpenloginAdapter() on remixjs app

**URL:** <https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [June 13, 2023, 8:01am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919 "2023-06-13T08:01:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tung.le2](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tung.le2](https://builder.metamask.io/u/tung.le2)\
**Post date:** [June 13, 2023, 8:01am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/1 "2023-06-13T08:01:19Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **tung.le2** on 6/13/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

**Please provide the following details too when asking for help in this category:**

- SDK Version:  
“web3auth/base”: “^5.2.0”,  
“web3auth/no-modal”: “^5.2.0”,  
“web3auth/openlogin-adapter”: “^5.2.0”,  
“solana/web3.js”: “^1.36.0”
- Platform:  
“polkadot/api”: “^9.13.6”,  
“polkadot/extension-dapp”: “^0.44.8”,  
“polkadot/extension-inject”: “^0.44.8”,  
“polkadot/ui-keyring”: “^2.12.1”,  
“polkadot/util-crypto”: “^10.2.6”,  
“remix-run/node”: “^1.10.1”,  
“remix-run/react”: “^1.10.1”,  
“remix-run/vercel”: “^1.10.1”,
- Browser Console Screenshots: Chorme

* * *

I have trouble when I’m using

```auto
const openloginAdapter = new OpenloginAdapter();
web3authInstance.configureAdapter(openloginAdapter);

```

on my remix app. It is always throw “ **Uncaught SyntaxError: Identifier ‘process’ has already been declared** ” or " **Dynamic require of “process/” is not supported**"

---

<div class="post-metadata">

**Author:** ![tung.le2](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tung.le2](https://builder.metamask.io/u/tung.le2)\
**Post date:** [June 13, 2023, 8:01am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/2 "2023-06-13T08:01:49Z")

</div>

![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/b/bcbf0566878bfd1d0b01652ca73d82818f21b6c5.png)

---

<div class="post-metadata">

**Author:** ![shahbaz](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/shahbaz/32/1527_2.png) [@shahbaz](https://builder.metamask.io/u/shahbaz)\
**Post date:** [June 14, 2023, 9:09am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/3 "2023-06-14T09:09:53Z")

</div>

Hello @tung.le2,

It seems that the issue is related to polyfill. Unfortunately, we do not have a demo Remix app available. Would you kindly provide us with a sample project so that we can work together to resolve the problem?

Thank you in advance for your response.

---

<div class="post-metadata">

**Author:** ![tung.le2](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tung.le2](https://builder.metamask.io/u/tung.le2)\
**Post date:** [June 15, 2023, 2:23am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/4 "2023-06-15T02:23:15Z")

</div>

Hi,  
thank you for your response, here is remixJs demo. Please have a look.

 ![](https://github.githubassets.com/favicons/favicon.svg)

```
  <a href="https://github.com/fox19960910/remix-web3auth-demo" target="_blank" rel="noopener nofollow ugc">GitHub</a>

```

 ![](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/b/badd351ba4f8ce37a44a0990b432d2c1333249e3.png)

### [GitHub - fox19960910/remix-web3auth-demo](https://github.com/fox19960910/remix-web3auth-demo)

Contribute to fox19960910/remix-web3auth-demo development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![tung.le2](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tung.le2](https://builder.metamask.io/u/tung.le2)\
**Post date:** [June 16, 2023, 2:01am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/5 "2023-06-16T02:01:34Z")

</div>

Hi team,  
any update? ☹

---

<div class="post-metadata">

**Author:** ![shahbaz](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/shahbaz/32/1527_2.png) [@shahbaz](https://builder.metamask.io/u/shahbaz)\
**Post date:** [June 19, 2023, 5:20am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/6 "2023-06-19T05:20:45Z")

</div>

Hello @tung.le2,

I appreciate you sharing this repository. I will take a look and keep you informed of any updates.

@maharshi can you take a look at this example and update with the latest SDK?

---

<div class="post-metadata">

**Author:** ![amitt](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/amitt/32/323_2.png) [@amitt](https://builder.metamask.io/u/amitt)\
**Post date:** [June 23, 2023, 4:47pm UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/7 "2023-06-23T16:47:23Z")

</div>

We’re also seeing similar issues with Remix and the “cannot include process/” error. We’re trying to workround internally and will share back if we figure out a solve but +1 to an example repo from the web3auth team

---

<div class="post-metadata">

**Author:** ![amitt](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/amitt/32/323_2.png) [@amitt](https://builder.metamask.io/u/amitt)\
**Post date:** [June 23, 2023, 6:38pm UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/8 "2023-06-23T18:38:31Z")

</div>

We got this working with the following in remix.config. Note you might need to do new clone of your project to ensure all of the various caches are wiped.

```auto
const { withEsbuildOverride } = require('remix-esbuild-override');
const GlobalsPolyfills = require('@esbuild-plugins/node-globals-polyfill').default;
const NodeModulesPolyfillPlugin = require('@esbuild-plugins/node-modules-polyfill').default;
withEsbuildOverride((option, { isServer }) => {
if (!isServer) {
option.plugins = [
NodeModulesPolyfillPlugin(),
GlobalsPolyfills({
buffer: true,
process: true,
}),
…option.plugins,
];
}
return option;

});

```

---

<div class="post-metadata">

**Author:** ![shahbaz](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/shahbaz/32/1527_2.png) [@shahbaz](https://builder.metamask.io/u/shahbaz)\
**Post date:** [June 26, 2023, 3:40am UTC](https://builder.metamask.io/t/archive-cannot-create-new-openloginadapter-on-remixjs-app/1919/9 "2023-06-26T03:40:26Z")

</div>

Hey @amitt

Thanks for sharing. Let me reclone and test it. If things look good, would be happy to include it in our example’s repo for others to use.
