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] 在next.js使用中发现的问题 #177

Open
PeiJM opened this issue Apr 24, 2024 · 0 comments
Open

🐛[BUG] 在next.js使用中发现的问题 #177

PeiJM opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PeiJM
Copy link

PeiJM commented Apr 24, 2024

🧐 问题描述1

打包报错

报错信息

Generating static pages (0/5) [= ]Error [ERR_REQUIRE_ESM]: require() of ES Module D:\Project\gsxm\next-chat\node_modules\shiki\dist\bundle-web.mjs not supported.
Instead change the require of D:\Project\gsxm\next-chat\node_modules\shiki\dist\bundle-web.mjs to a dynamic import() which is available in all CommonJS modules.

🧐 问题描述2

不知道是什么问题会报错

报错信息

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

🧐 问题描述3

弃用警告

报错信息

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DomWrapper which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node

版本信息

"@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"

@ONLY-yours ONLY-yours added the bug Something isn't working label Apr 25, 2024
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