taozhi1010/nest-admin

运行yarn run start报错,ES 模块和CommonJS 模块的混用错误。

Opened this issue · 0 comments

Server目录下,运行yarn run start时报错:
涉及代码行:const stringWidth = require('string-width');
wrap-ansi模块中使用了 ES 模块语法的string-width模块,但wrap-ansi模块本身是 CommonJS 模块,这种混合使用导致了错误。