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

🧐[问题]server Error / TypeError: Cannot read properties of undefined (reading 'map') #259

Closed
fxz19901123 opened this issue Jun 30, 2024 · 1 comment

Comments

@fxz19901123
Copy link

🧐 问题描述

"next": "14.2.4", pagesRouter ,按照要求添加了transpilePackages配置。启动项目后,报错。

Call Stack
map
node_modules/@ant-design/pro-editor/es/Markdown/wrapper.js (11:35)
Next.js
eval
/node_modules/@ant-design/pro-editor/es/Markdown/wrapper.js
./node_modules/@ant-design/pro-editor/es/Markdown/wrapper.js
file:///Users/Annce/Desktop/tools/timeline-frontend/.next/server/vendor-chunks/@ant-design.js (19140:1)
Next.js
eval
/node_modules/@ant-design/pro-editor/es/Markdown/CodeBlock.js
Next.js
eval
/node_modules/@ant-design/pro-editor/es/Markdown/CodeBlock.js
./node_modules/@ant-design/pro-editor/es/Markdown/CodeBlock.js
file:///Users/Annce/Desktop/tools/timeline-frontend/.next/server/vendor-chunks/@ant-design.js (19110:1)
Next.js
eval
/node_modules/@ant-design/pro-editor/es/Markdown/index.js
Next.js
eval
/node_modules/@ant-design/pro-editor/es/Markdown/index.js
./node_modules/@ant-design/pro-editor/es/Markdown/index.js
file:///Users/Annce/Desktop/tools/timeline-frontend/.next/server/vendor-chunks/@ant-design.js (19120:1)
Next.js

@AmAzing129
Copy link
Collaborator

目测 @ant-design/pro-editor transpile 未生效,最新版本的 nextjs 正确配置不会存在问题,请提供具体代码复现,先关闭了

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

No branches or pull requests

2 participants