You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build my project using npx @cloudflare/next-on-pages it results in an unexpected error, "Unexpected error: The "path" argument must be of type string. Received undefined"
I tried to. After further invesitigation it seems that the issue was a bug in my code that was not resulting in an error properly and was instead resulting in the next-on-pages throwing an error.
next-on-pages environment related information
System:
Platform: linux
Arch: x64
Version: #1 SMP Fri Mar 29 23:14:13 UTC 2024
CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Memory: 16 GB
Shell: /bin/bash
Package Manager Used: npm (9.2.0)
Relevant Packages:
@cloudflare/next-on-pages: 1.12.1
vercel: N/A
next: 14.2.5
Description
When attempting to build my project using npx @cloudflare/next-on-pages it results in an unexpected error, "Unexpected error: The "path" argument must be of type string. Received undefined"
Verbose Log:
This happens both when buidling locally and when buidling on cloudflare pages. npx next dev works and launches app.
Reproduction
I was able to determine that this occurred due to all of my routes being edge functions.
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
All attempted deployments have failed
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: