Skip to content

[bug] Doesn't work with react 17 #2345

@dattran92

Description

@dattran92

Link to minimal reproducible example

no

Summary

we are using useSyncExternalStore, which is newly introduced in react 18. So it doesn't work with react 17

ERROR in ./node_modules/@web3modal/scaffold-react/dist/esm/index.js 55:21-41
export 'useSyncExternalStore' (imported as 'useSyncExternalStore') was not found in 'react' (possible exports: Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version)

List of related npm package versions

"react": "^17.0.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions