umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

bug: dumi 2.4.0 之后的版本会报错 require is not defined #2160

Closed huarse closed 4 months ago

huarse commented 4 months ago

Version

= 2.4.0

OS Version

macOS

Node.js Version

18

Browser Version

Chrome

Link to minimal reproduction

Steps to reproduce

直接运行,看控制台

What is expected?

2.3.x 版本是不会报错的

What is actually happening?

image

Any additional comments? (optional)

No response

PeachScript commented 4 months ago

看是海兔代码块的问题,可以到海兔群里反馈,可能和 #2156 有关, @Jinbao1001 跟进下

另外内部域名不要贴在 issue 里,描述里我已经删掉了