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

[BUG] Attempted import error: 'useActionState' is not exported from 'react' (imported as 'React') #122

Closed
2 tasks done
tuankietcoderr opened this issue May 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@tuankietcoderr
Copy link

Are you using the latest version of this library?

  • I verified that the issue exists in the latest next-safe-action release

Is there an existing issue for this?

  • I have searched the existing issues and found nothing that matches

Describe the bug

Hello it's me again! I'm building next project and this error occured:

Screenshot 2024-05-11 at 05 52 32

I'd tried to import React to my main code but it still be like that
Screenshot 2024-05-11 at 05 53 05

Reproduction steps

  1. yarn build
  2. The error occured

Expected behavior

Build successfully!

Reproduction example

https://github.com/Sobee-Project/sobee-management

Operating System

macOS Sonoma 14.4.1

Library version

^7.0.0-next.39

Additional context

No response

@tuankietcoderr tuankietcoderr added the bug Something isn't working label May 10, 2024
@TheEdoRan
Copy link
Owner

I think the problem is that you have to install Next.js 14.3.0 canary version, as explained in #113 and beta version docs. Let me know if it fixes your problem, thanks.

@tuankietcoderr
Copy link
Author

I think the problem is that you have to install Next.js 14.3.0 canary version, as explained in #113 and beta version docs. Let me know if it fixes your problem, thanks.

TY i'll reply asap

@tuankietcoderr
Copy link
Author

tuankietcoderr commented May 10, 2024

I think the problem is that you have to install Next.js 14.3.0 canary version, as explained in #113 and beta version docs. Let me know if it fixes your problem, thanks.

Yeah i did resolve it, thank you for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants