/src/components/index.md在umi3编译失败

548 阅读1分钟

Module build failed (from ./node_modules/@umijs/preset-dumi/lib/loader/index.js): Error: [BABEL] D:\code\vedap-fe\src\components\index.tsx: @babel/helper-compilation-targets: 'opera_mobile' is not a valid target

运行很久的项目,今天因为引入新包,从新install了,node_modules更新后报上面的错误。Github上issues说是因为umi3编译失败。umi内部升级了babel

github.com/ant-design/…

解决方案:把src/components/index.md 内容清空就可以了