Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in D:\project\saas-platform-pc\node_modules\@babel\helper-compilation-targets\package.json
原因:可能是node版本导致引入依赖时bable配置问题。
解决办法
修改对应文件 node_modules\@babel\helper-compilation-targets\package.json
48行的 “exports”:false
为
{
".": "./lib/index.js"
},
评论已关闭