lazarv / react-server

The easiest way to build React apps with server-side rendering
https://react-server.dev
MIT License
118 stars 6 forks source link

vercel adatpter error #14

Closed slajher closed 3 months ago

slajher commented 3 months ago

Hi again @lazarv!

I try to deploy my project to Vercel and when I add the adapter to the configuration, the build is broken.

react-server.config.minjs

export default {
  root: "src/pages",
  public: "public",
  adapter: '@lazarv/react-server-adapter-vercel',
};

react-server/0.0.0-experimental-d1c9522-20240723-b0a2206e copying server dependencies [  ==]
Error: ENOENT: no such file or directory, lstat 'C:\home\work\router-test\node_modules\.pnpm\@lazarv+react-server@0.0.0-experimental-d1c9522-20240723-b0a2206e_@types+node@22.1.0_less@4.2_uxfeevhkpp2kjhnvfw2vabrgli\node_modules\C:\home\work\router-test\node_modules\.pnpm\module-alias@2.2.3\node_modules\module-alias'
    at lstatSync (node:fs:1643:25)
    at file:///C:/home/work/router-test/node_modules/.pnpm/@lazarv+react-server-adapter-vercel@0.0.0-experimental-390014f-20240808-b8180624_@lazarv+reac_g64p7ijxdiodfm6vx7na4yy4gm/node_modules/@lazarv/react-server-adapter-vercel/index.mjs:317:26
    at Array.reduce (<anonymous>)
    at adapter (file:///C:/home/work/router-test/node_modules/.pnpm/@lazarv+react-server-adapter-vercel@0.0.0-experimental-390014f-20240808-b8180624_@lazarv+reac_g64p7ijxdiodfm6vx7na4yy4gm/node_modules/@lazarv/react-server-adapter-vercel/index.mjs:312:47)
    at async adapter (file:///C:/home/work/router-test/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-d1c9522-20240723-b0a2206e_@types+node@22.1.0_less@4.2_uxfeevhkpp2kjhnvfw2vabrgli/node_modules/@lazarv/react-server/lib/build/adapter.mjs:35:7)
    at async file:///C:/home/work/router-test/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-d1c9522-20240723-b0a2206e_@types+node@22.1.0_less@4.2_uxfeevhkpp2kjhnvfw2vabrgli/node_modules/@lazarv/react-server/lib/build/action.mjs:67:11

ⅹ Build failed in 5.02s
 ELIFECYCLE  Command failed with exit code 1.
PS C:\home\work\router-test>
lazarv commented 3 months ago

Should be fixed now with the latest version of @lazarv/react-server-adapter-vercel, please upgrade and try running build again.

slajher commented 3 months ago

After the update everything is fine, thank you very much for the really quick response!

github-actions[bot] commented 2 months ago

This issue has been locked since it has been closed for more than 30 days.

If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest version of @lazarv/react-server. If you have any other comments you should create a new discussion.