web3-onboard icon indicating copy to clipboard operation
web3-onboard copied to clipboard

[BUG] Attempted import error: 'startWith' is not exported from 'rxjs' (imported as 'startWith'). web3-onboard/core

Open hkhangus opened this issue 1 year ago • 1 comments

Current Behavior

Module error

Expected Behavior

Module work

Steps To Reproduce

I'm following this tutorial I export it to a provider like OnboardProvider.tsx

export default function OnboardProvider({
    children,
  }: {
    children: React.ReactNode;
  }) {
  return (
    <Web3OnboardProvider web3Onboard={web3Onboard}>
      {children}
    </Web3OnboardProvider>
  )
}

And then it didn't work cause log under

What package is effected by this issue?

@web3-onboard/core

Is this a build or a runtime issue?

Runtime

Package Version

^2.9.2

Node Version

20.17.0

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

Relevant log output

./node_modules/@web3-onboard/core/dist/Index-652aeb8c.js
Attempted import error: 'startWith' is not exported from 'rxjs' (imported as 'startWith').

Import trace for requested module:
./node_modules/@web3-onboard/core/dist/Index-652aeb8c.js
./node_modules/@web3-onboard/core/dist/index-da42639e.js
./node_modules/@web3-onboard/core/dist/index.js
./node_modules/@web3-onboard/react/dist/context.js
./node_modules/@web3-onboard/react/dist/index.js
./src/providers/OnboardProvider.tsx
./src/providers/Provider.tsx

Anything else?

No response

Sanity Check

  • [X] If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.

hkhangus avatar Aug 28 '24 03:08 hkhangus

Did anyone look into this? @hkhangus @Adamj1232

I'm getting the same problem on Nextjs and CRA. Interestingly, this wasn't happening on older versions using Node v16 and "@web3-onboard/core": "^2.10.0",

Amirjab21 avatar Dec 07 '24 20:12 Amirjab21