Open veeramarni opened 1 month ago
I encounter this problem too. any solutions? nodejs version: 16.17.1
The cause of the error is this commit 455b4f1bb1edfd896c04d98c37da6f97fb2428cb. rollback to a version before that which is 7.19.11
here is the commands:
yarn remove @ant-design/pro-layout
yarn add @ant-design/pro-layout@7.19.11
https://github.com/ant-design/pro-components/pull/8606 https://github.com/ant-design/pro-components/commit/455b4f1bb1edfd896c04d98c37da6f97fb2428cb
@sushi-su https://github.com/ant-design/pro-components/commit/455b4f1bb1edfd896c04d98c37da6f97fb2428cb
这不是纯 esm,如果您在 cjs 文件中使用“lodash-es”,它会在 SSR 期间产生错误,因为 Node 不喜欢将 esm 与 cjs 混合。您可以通过生成与 cjs 并行的 .mjs 文件来获得与纯 esm 完全兼容的包。
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🔩 所属模块或组件
Nodejs pure esm fails