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

単体テスト、結合テストの環境をローカルに作る #30

Closed
Satoshi-Moriya opened this issue Jan 14, 2025 · 3 comments · Fixed by #31
Closed

単体テスト、結合テストの環境をローカルに作る #30

Satoshi-Moriya opened this issue Jan 14, 2025 · 3 comments · Fixed by #31

Comments

@Satoshi-Moriya
Copy link
Owner

No description provided.

@Satoshi-Moriya
Copy link
Owner Author

エラーの内容

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"19.0.0-rc-66855b96-20241106" from the root project
npm error

npm error Could not resolve dependency:
npm error peer react@"^18.0.0 || ^19.0.0" from @testing-library/[email protected]
npm error node_modules/@testing-library/react
npm error   dev @testing-library/react@"16.1.0" from the root project

npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

思ったこと

  • 自分もよくわかっていなが、そもそもNext.jsの安定版として「react@"19.0.0-rc-66855b96-20241106」を採用していて問題ないのか?
  • rcってリリース候補なんでしょ?

エラー解決&ダウングレード参考記事

@Satoshi-Moriya
Copy link
Owner Author

テスト導入参考記事

Satoshi-Moriya added a commit that referenced this issue Jan 19, 2025
@Satoshi-Moriya
Copy link
Owner Author

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

Successfully merging a pull request may close this issue.

1 participant