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
Collecting page data ../Users/xxx/.next/server/app/api/[[...slugs]]/route.js:549
`:t+=s+"\n",t+="\n}\n"}return Function("inject",t+=`if(error.constructor.name === "ValidationError" || error.constructor.name === "TransformDecodeError") {
^
EvalError: Code generation from strings disallowed for this context
at Function (<anonymous>)
at a6 (/Users/xxx/.next/server/app/api/[[...slugs]]/route.js:549:31)
at a8 (/Users/xxx/.next/server/app/api/[[...slugs]]/route.js:516:11)
at e.compile (/Users/xxx/.next/server/app/api/[[...slugs]]/route.js:585:15168)
at 7406 (/Users/xxx/.next/server/app/api/[[...slugs]]/route.js:609:181)
at t (/Users/xxx/.next/server/edge-runtime-webpack.js:1:127)
at t (/Users/xxx/.next/server/app/api/[[...slugs]]/route.js:622:102287)
at /Users/xxx/.next/server/app/api/[[...slugs]]/route.js:622:102312
at t.O (/Users/xxx/.next/server/edge-runtime-webpack.js:1:496)
at /Users/xxx/.next/server/app/api/[[...slugs]]/route.js:622:102329
> Build error occurred
Error: Failed to collect page data for /api/[[...slugs]]
at /Users/xxx/node_modules/next/dist/build/utils.js:1268:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'Error'
}
Collecting page data .error: script "build" exited with code 1
What version of Elysia.JS is running?
^1.0.9
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
I have created a sample repo, and you may clone and try out.
Github Repo
You may look at the source code of elysia here
What is the expected behavior?
When Nextjs API is called, there should be no error "Performance degradation found. Please call Elysia.compile() before using 'fetch'"
What do you see instead?
Performance degradation found. Please call Elysia.compile() before using 'fetch'
Additional information
bun dev
works fine without the error printing, but whenbun start
afterbun run build
, this happens.The text was updated successfully, but these errors were encountered: