在完成此完整堆栈 React 和 Firebase 教程并尝试使用 Firebase 身份验证来创建新用户时,我收到以下错误。
\nError [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /socialapp-functions/functions/node_modules/firebase/package.json\n at throwExportsNotFound (internal/modules/esm/resolve.js:299:9)\n at packageExportsResolve (internal/modules/esm/resolve.js:522:3)\n at resolveExports (internal/modules/cjs/loader.js:449:36)\n at Function.Module._findPath (internal/modules/cjs/loader.js:489:31)\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:875:27)\n at Function.Module._load (internal/modules/cjs/loader.js:745:27)\n at Module.require (internal/modules/cjs/loader.js:961:19)\n at require (internal/modules/cjs/helpers.js:92:18)\n at Object.<anonymous> (/socialapp-functions/functions/index.js:17:18)\n at Module._compile (internal/modules/cjs/loader.js:1072:14)\n\xe2\x9a\xa0 We were unable to load your functions code. (see above)\nRun Code Online (Sandbox Code Playgroud)\n该教程详细介绍了这样的代码:
\n// Signup route\napp.post("/signup", (req, res) => {\n const newUser = {\n email: req.body.email,\n password: req.body.password,\n confirmPassword: req.body.confirmPassword,\n handle: req.body.handle,\n …Run Code Online (Sandbox Code Playgroud)