Remove untracked files, stash or
2022-02-01 本文已影响0人
天渺工作室
在react 项目中暴露webpack 配置文件的时候,执行
yarn run eject
报错
Remove untracked files, stash or commit any changes, and try again.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
![](https://img.haomeiwen.com/i5109238/dba58834ecdc7548.png)
其实就是因为工程默认的git 导致的(git配置文件)
![](https://img.haomeiwen.com/i5109238/52e5528b975b3599.png)
在默认执行
git status
git add . // 添加全部
git commit -m "first" //首次commit 一次
// 就ok了
![](https://img.haomeiwen.com/i5109238/d1a370bc780e41b0.gif)