Hi, I have a deployed project with nextjs 14 and firebase. The deployed version is working fine. I did some minor changes and I updated the git repository.
When I was looking on my vercel dashboard I saw that I have this error:
Error: Component auth has not been registered yet14:42:15.467 at ee.initialize (/vercel/path0/.next/server/app/api/update-email/route.js:1:11716)14:42:15.467 at mN (/vercel/path0/.next/server/app/api/update-email/route.js:11:109623)14:42:15.467 at Bw (/vercel/path0/.next/server/app/api/update-email/route.js:11:129457)14:42:15.467 at 33424 (/vercel/path0/.next/server/app/api/update-email/route.js:12:23974)14:42:15.467 at t (/vercel/path0/.next/server/webpack-runtime.js:1:128)14:42:15.467 at __webpack_exec__ (/vercel/path0/.next/server/app/api/update-email/route.js:47:134020)14:42:15.467 at /vercel/path0/.next/server/app/api/update-email/route.js:47:13412514:42:15.467 at t.X (/vercel/path0/.next/server/webpack-runtime.js:1:1206)14:42:15.467 at /vercel/path0/.next/server/app/api/update-email/route.js:47:13410514:42:15.468 at Object.<anonymous> (/vercel/path0/.next/server/app/api/update-email/route.js:47:134186)14:42:15.47714:42:15.478 > Build error occurred14:42:15.479 Error: Failed to collect page data for /api/update-email14:42:15.479 at /vercel/path0/node_modules/next/dist/build/utils.js:1269:1514:42:15.480 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {14:42:15.480 type: 'Error'14:42:15.480 }14:42:15.508 Error: Command "npm run build" exited with 1The thing is I didn't touch this file. And I didn't touch any relevant files like the ones that handles the firebase. I did the build on my computer and worked fine. I even changed the node version to match the one on my comp but still the same.
If I remove the /api/update-email folder, it will build the project but I will get the same error:
Uncaught (in promise) Error: Component auth has not been registered yet at o.initialize (9983-0b320b0bdac82380.js:1:81900) at d441faa4-7d6aff50c50f3feb.js:1:78948 at ro (d441faa4-7d6aff50c50f3feb.js:1:78972) at 85081 (7392-16c78d257af26937.js:1:4041) at s (webpack-ea53e56806cb6941.js:1:152) at 69624 (2019-a91457f20c6d6223.js:1:27432) at s (webpack-ea53e56806cb6941.js:1:152) at 9821 (2019-a91457f20c6d6223.js:1:22838) at s (webpack-ea53e56806cb6941.js:1:152) at 80562 (2019-a91457f20c6d6223.js:1:441)I used the same repository to try starting a different project and I have the same issue. Can you help me please?