在我的react项目中运行 yarn eject 后,在index.js中调用 registerServiceWorker() 时出现 'process' is not defined 错误 . 脚本和配置目录中的文件不会被修改 .

我得到 module 变量的相同错误 .