I'm starting to think it's something global or something.
I started having this problem 2 or 4 days ago, nothing changed in my app, however today when I tried to do an npm run build
, I get the same thing.
SyntaxError: Unexpected identifier '#Y'.
at wrapSafe (node:internal/modules/cjs/loader:1427:18)
at Module._compile (node:internal/modules/cjs/loader:1449:20)
at Module._extensions.js (node:internal/modules/cjs/loader:1588:10)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at mod.require (E:\git-challenge-traveler-visitor-visitant_modules_modules_next_distress-server-require-hook.js:65:28)
in require (node:internal/modules/helpers:123:16)
> A compilation error has occurred
Error: Failed to collect page data for /api/dashboard/create-company
at E:\git-challenge-traveler-visitant “client” modules “nextdistinct”.js:1268:15
in process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'Error'
}
I tried doing the build on past commits where the site was working fine, and it's still the same. Does anyone know where one could report such an error, I think probably in the vercel forum, however I was asked what I did and the truth is that nothing.