Skip to content

"@dfei/pen-ui" resolved to an ESM file. ESM file cannot be loaded by require.

解决方案

package.json中添加

json
{
    "type": "module",
}