-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Open
Description
Reproduction
https://github.com/brillout/telefunc-react-router/tree/repro then run:
pnpm i
pnpm run build
System Info
System:
OS: Linux 6.8 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 3.17 GB / 7.52 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
Yarn: 1.22.22 - ~/.nix-profile/bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
pnpm: 10.14.0 - ~/.nvm/versions/node/v22.14.0/bin/pnpm
bun: 1.1.24 - ~/.bun/bin/bun
Watchman: 2024.03.11.00 - /home/rom/.nix-profile/bin/watchman
Browsers:
Chrome: 140.0.7339.127
npmPackages:
@react-router/dev: ^7.7.1 => 7.9.1
@react-router/node: ^7.7.1 => 7.9.1
@react-router/remix-routes-option-adapter: ^7.9.1 => 7.9.1
@react-router/serve: ^7.7.1 => 7.9.1
react-router: ^7.7.1 => 7.9.1
vite: ^7.1.5 => 7.1.5
Used Package Manager
pnpm
Expected Behavior
No error
Actual Behavior
> app@ build /home/rom/tmp/telefunc-react-router
> react-router build
vite v7.1.5 building for production...
✓ 70 modules transformed.
Generated an empty chunk: "_telefunc".
build/client/.vite/manifest.json 1.54 kB │ gzip: 0.42 kB
build/client/assets/root-CJ1ldolH.css 4.61 kB │ gzip: 1.57 kB
build/client/assets/_telefunc-l0sNRNKZ.js 0.00 kB │ gzip: 0.02 kB
build/client/assets/root-D8Ym4Pml.js 1.09 kB │ gzip: 0.62 kB
build/client/assets/index-CR4ThtWQ.js 8.97 kB │ gzip: 3.68 kB
build/client/assets/chunk-B7RQU5TL-CIHSr9mg.js 115.20 kB │ gzip: 38.83 kB
build/client/assets/entry.client-DZ7-m0fo.js 186.52 kB │ gzip: 59.18 kB
✓ built in 1.70s
vite v7.1.5 building SSR bundle for production...
✓ 10 modules transformed.
✗ Build failed in 2.22s
[@brillout/vite-plugin-server-entry:telefunc:hooks] [@brillout/[email protected]][Wrong Usage] Found build server entry entry (as expected) but it's saved at /home/rom/tmp/telefunc-react-router/build/server/server/index.js which is unexpected: it should be saved at /home/rom/tmp/telefunc-react-router/build/server/server/entry.{js,mjs} instead. If you use rollupOptions.output.entryFileNames then make sure you don't change the file name of the production server entry.
at findRollupBundleEntry (file:///home/rom/tmp/telefunc-react-router/node_modules/.pnpm/@[email protected]/node_modules/@brillout/vite-plugin-server-entry/dist/esm/utils/findRollupBundleEntry.js:44:9)
at findServerEntry (file:///home/rom/tmp/telefunc-react-router/node_modules/.pnpm/@[email protected]/node_modules/@brillout/vite-plugin-server-entry/dist/esm/plugin/index.js:341:9)
at Object.handler (file:///home/rom/tmp/telefunc-react-router/node_modules/.pnpm/@[email protected]/node_modules/@brillout/vite-plugin-server-entry/dist/esm/plugin/index.js:130:39)
at Object.handler (file:///home/rom/tmp/telefunc-react-router/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-M_KD0XSK.js:34452:13)
at file:///home/rom/tmp/telefunc-react-router/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:22428:40 {
code: 'PLUGIN_ERROR',
plugin: '@brillout/vite-plugin-server-entry:telefunc:hooks',
hook: 'generateBundle'
}
ELIFECYCLE Command failed with exit code 1.