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
· [one.build] platform vercel
· [one.build][vercel] generating serverless function for apiRoute /api/trpc/[...trpc]
· [one.build][vercel.createSsrServerlessFunction] pageName: /api/trpc/[...trpc]
· [one.build][vercel.createSsrServerlessFunction] detected react in depenency tree for /api/trpc/[...trpc]
[one.build][vercel.createSsrServerlessFunction] failed to generate func for /api/trpc/[...trpc] [Error: ENOENT: no such file or directory, lstat '/[my_home_dir]/node_modules/react'] {
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '/[my_home_dir]/eric/node_modules/react'
}
Expected Behavior
Build should succeed.
One Version
1.1.475
Platform (Web, iOS, Android)
Web
Reproduction
I'm sorry, I've moved to a different project and don't have time to build a full repro. The bug is at https://github.com/onejs/one/blob/main/packages/one/src/vercel/build/generate/createApiServerlessFunction.ts#L27 if you aren't in a monorepo (e.g. `./` instead of `./packages/app` directory).
System Info
The text was updated successfully, but these errors were encountered:
Current Behavior
Running
one:build
with this config:And I see this output:
Expected Behavior
Build should succeed.
One Version
Platform (Web, iOS, Android)
Reproduction
System Info
The text was updated successfully, but these errors were encountered: