-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ollama: running Vite in production mode fails #4516
Comments
This seems like an issue that should be created on https://github.com/ollama/ollama-js instead. |
cc @BruceMacD |
Then should i post in ollama-js ?? But i only installed ollama ( npm install ollama) in my project. Not ollamajs.... |
And you don't have to post it again there, the Ollama team can transfer the issue over manually. 👍 |
you can't use 'fs/promises' inside browser. maybe help this: vitejs/vite#8799 (reply in thread) |
The link you provided is broken.... But the thing is that in dev mode it hasnt any problems.... |
vite build dist for browser, for run dev mode used nodejs |
What is the issue?
Im developing web app for educational purpose. I use React + Vite. Till now in development mode im not facing great problems.... But now i have tried to run in production mode and got the error below: h
As for Vite is a problem that should be fixed by ollama ( the library) :https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility
Just if not clear: npm run dev works, but when i tried npm run build....i got the error above.
Hope this could be fixed soon.
Thanks
OS
No response
GPU
No response
CPU
No response
Ollama version
0.1.37
The text was updated successfully, but these errors were encountered: