Closed PeiJM closed 5 days ago
报错Uncaught Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
npx create-next-app@latest 创建项目 npm install antd antd-style -S npm install @ant-design/pro-chat -S 正常引入之后使用prochat npm run dev 就会报错
"@ant-design/pro-chat": "^1.13.1", "antd": "^5.16.4", "antd-style": "^3.6.2", "next": "14.2.2", "react": "^18", "react-dom": "^18"
无法复现,最新版本 nextjs 可以正常工作,还有问题请提供线上仓库地址
nextjs 相关问题供参考,后续会更新文档
https://github.com/ant-design/pro-chat/issues/266 https://github.com/ant-design/pro-chat/issues/92
🐛 bug 描述
报错Uncaught Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
📷 复现步骤
npx create-next-app@latest 创建项目 npm install antd antd-style -S npm install @ant-design/pro-chat -S 正常引入之后使用prochat npm run dev 就会报错
© 版本信息
"@ant-design/pro-chat": "^1.13.1", "antd": "^5.16.4", "antd-style": "^3.6.2", "next": "14.2.2", "react": "^18", "react-dom": "^18"
🚑 其他信息