mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
[vite-plugin-sveltekit-compile] Cannot read properties of undefined (reading 'file') #1946
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iunknown80 on GitHub (Aug 30, 2024).
Bug Report
Installation Method
I am using Install from Open WebUI Github Repo method in Windows.
Environment
Confirmation:
Description
I got the latest code from Git. When running the npm run build command,
`git clone https://github.com/open-webui/open-webui.git
cd open-webui
copy .env.example .env
npm install
npm run build`
I am getting the following error.
Logs and Screenshots
✓ 895 modules transformed.
x Build failed in 45.18s
error during build:
[vite-plugin-sveltekit-compile] Cannot read properties of undefined (reading 'file')
at file:///H:/source/repos/open-webui/node_modules/@sveltejs/kit/src/exports/vite/build/build_server.js:61:83
at Array.forEach ()
at build_server_nodes (file:///H:/source/repos/open-webui/node_modules/@sveltejs/kit/src/exports/vite/build/build_server.js:33:22)
at Object.handler (file:///H:/source/repos/open-webui/node_modules/@sveltejs/kit/src/exports/vite/index.js:760:5)
at file:///H:/source/repos/open-webui/node_modules/rollup/dist/es/shared/node-entry.js:19892:40
at async PluginDriver.hookParallel (file:///H:/source/repos/open-webui/node_modules/rollup/dist/es/shared/node-entry.js:19814:17)
at async file:///H:/source/repos/open-webui/node_modules/rollup/dist/es/shared/node-entry.js:20817:13
at async catchUnfinishedHookActions (file:///H:/source/repos/open-webui/node_modules/rollup/dist/es/shared/node-entry.js:20237:16)
at async build (file:///H:/source/repos/open-webui/node_modules/vite/dist/node/chunks/dep-BzOvws4Y.js:65337:16)
at async CAC. (file:///H:/source/repos/open-webui/node_modules/vite/dist/node/cli.js:828:5)
Reproduction Details
Additional Information
I even tried to install vite using "npm i vite". Still no luck. All of these I am doing directly from the command line following the instruction from OpenWebUI.
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!