amplitude / amplitude/experiment-node-server

ssr-demo needs react 18

未關閉
#37 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
TypeScript
星號
2
分支
8
PR 合併指標
30 天內沒有已合併 PR

描述

## Expected Behavior

We should be able to run the ssr-demo locally without needing to upgrade react or getting a fatal error about react.

## Current Behavior

Got this error when trying to run ssr-demo locally:
```
Error: Next.js requires react >= 18.2.0 to be installed.
at Object. (/Users/my.username/experiment-node-server/node_modules/next/dist/build/webpack-config.js:1842:11)
```

## Possible Solution

I upgraded react to be v 18.2.0 and it ran correctly after that.

## Steps to Reproduce

1. Clone the repo
2. Yarn install
3. cli command `yarn start`
4. get fatal error about react version

## Environment
- JS Server SDK Version: main branch
- Installation Method: yarn
- Browser and Version: Chrome Version 120.0.6099.129

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。