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

export 'unstable_act' (imported as 'React') was not found in 'react' #2037

Closed
masawik opened this issue Jan 29, 2022 · 11 comments
Closed

export 'unstable_act' (imported as 'React') was not found in 'react' #2037

masawik opened this issue Jan 29, 2022 · 11 comments

Comments

@masawik
Copy link

masawik commented Jan 29, 2022

I used create-react-app --template typescript
then yarn add three @react-three/fiber
when I try to follow the examples from the documentation I get the following error

ERROR in ./node_modules/@react-three/fiber/dist/index-3f4e5f46.esm.js 1804:12-30
export 'unstable_act' (imported as 'React') 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)
@ ./node_modules/@react-three/fiber/dist/react-three-fiber.esm.js 1:0-141 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-397 2:0-3
97 2:0-397 2:0-397 2:0-397 29:6-18 130:22-28 144:22-26 145:19-23 154:4-14 173:17-39

I can't find anything at all about this error on the whole internet.

@joshuaellis
Copy link
Member

joshuaellis commented Jan 29, 2022

can you please provide a reproduction so we can see? Also at what point does the error come etc. It won't be from when it's just installed i dont think.

@CodyJasonBennett
Copy link
Member

CodyJasonBennett commented Jan 29, 2022

It looks like beta-05 wasn't tagged correctly:

image

I assume this will install if you do npm install @react-three/fiber.

Any way we can retag/revert this release? Possibly under rc if there's a rate limit for beta. /cc @drcmda

@drcmda
Copy link
Member

drcmda commented Jan 30, 2022

accidentally pushed v8 to main channel like cody said. no repro needed just go back to the last version before that.

@masawik
Copy link
Author

masawik commented Jan 30, 2022

accidentally pushed v8 to main channel like cody said. no repro needed just go back to the last version before that.

@masawik masawik closed this as completed Jan 30, 2022
@drcmda
Copy link
Member

drcmda commented Jan 30, 2022

its now fixed. you can go to latest safely again.

@yungobiwan
Copy link

Still experiencing this issue. Using @react-three/fiber": "^8.0.20 and react: "^17.0.2"

@susiwen8
Copy link
Contributor

susiwen8 commented Jun 2, 2022

Still experiencing this issue. Using @react-three/fiber": "^8.0.20 and react: "^17.0.2"

Wrong react, please use 18

@tomtom94
Copy link

tomtom94 commented Nov 3, 2022

Unfortunately community isn't yet ready for react 18, me too I am not.

@CodyJasonBennett
Copy link
Member

Please refrain from such comments on an open-source issue tracker. If you cannot use react 18, see peer deps. R3F v7 would be the last supported major to support prior versions.

@tomtom94
Copy link

tomtom94 commented Nov 3, 2022

Thanks for the fast reply.

https://www.npmjs.com/package/@hot-loader/react-dom isn't yet compatible with react 18
gregberge/loadable-components#718 loadable component for SSR neither.

@CodyJasonBennett
Copy link
Member

Please continue discussion in those respective projects.

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

No branches or pull requests

7 participants