Closed kemisstep closed 8 months ago
已经在nextConfig 设置了,但是不起效果: const nextConfig = { // 将纯 esm 模块转为 node 兼容模块 transpilePackages: ['@ant-design/pro-editor', 'leva'], // leva 为 ProEditor 依赖模块 };
@kemisstep 试试配置下这个,我到时候在文档里面补充详细下关于 NextJs 配置的情况
transpilePackages: [
'@ant-design/pro-flow-editor',
'@ant-design/pro-editor',
'zustand',
'leva',
'ahooks',
],
最后发现,这个玩意是有先后顺序的,需要放置再前面