✓ 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!
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
- **Open WebUI Version:** [v0.3.16]
- **Operating System:** [Windows Server 2019]
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [x] I am on the latest version of both Open WebUI and Ollama.
- [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## 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 (<anonymous>)
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.<anonymous> (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!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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!