adk-samples
adk-samples copied to clipboard
[BUG]: gemini-fullstack example doesn't run. Not possible to run the frontend
Name of sample affected
gemini-fullstack
Description of issue
gemini-fullstack example doesn't run. Not possible to run the frontend.
Environment
Im using a virtual environment with venv. I had to manually install uv
- OS & Architecture: macOS 14.1 (Apple Silicon/arm64)
- Python version: 3.12
Reproduction steps or code
cd adk-samples/python/agents/gemini-fullstack/frontend
make install & make dev
npm run build
Error log
(.venv) samuelschmid@samuels-mac-studio-2 frontend % npm run build
> [email protected] build
> tsc -b && vite build
src/App.tsx:21:11 - error TS6196: 'AgentResponse' is declared but never used.
21 interface AgentResponse {
~~~~~~~~~~~~~
src/App.tsx:285:58 - error TS6133: 'model' is declared but its value is never read.
285 const handleSubmit = useCallback(async (query: string, model: string, effort: string) => {
~~~~~
src/App.tsx:285:73 - error TS6133: 'effort' is declared but its value is never read.
285 const handleSubmit = useCallback(async (query: string, model: string, effort: string) => {
~~~~~~
src/App.tsx:471:9 - error TS6133: 'scrollToBottom' is declared but its value is never read.
471 const scrollToBottom = useCallback(() => {
~~~~~~~~~~~~~~
src/App.tsx:545:15 - error TS2322: Type '(query: string, model: string, effort: string) => Promise<void>' is not assignable to type '(query: string) => void'.
Target signature provides too few arguments. Expected 3 or more, but got 1.
545 handleSubmit={handleSubmit}
~~~~~~~~~~~~
src/components/WelcomeScreen.tsx:5:3
5 handleSubmit: (query: string) => void;
~~~~~~~~~~~~
The expected type comes from property 'handleSubmit' which is declared here on type 'IntrinsicAttributes & WelcomeScreenProps'
src/App.tsx:554:15 - error TS2322: Type '(query: string, model: string, effort: string) => Promise<void>' is not assignable to type '(query: string) => void'.
Target signature provides too few arguments. Expected 3 or more, but got 1.
554 onSubmit={handleSubmit}
~~~~~~~~
src/components/ChatMessagesView.tsx:288:3
288 onSubmit: (query: string) => void;
~~~~~~~~
The expected type comes from property 'onSubmit' which is declared here on type 'IntrinsicAttributes & ChatMessagesViewProps'
vite.config.ts:27:28 - error TS6133: 'options' is declared but its value is never read.
27 configure: (proxy, options) => {
~~~~~~~
vite.config.ts:28:35 - error TS6133: 'req' is declared but its value is never read.
28 proxy.on('error', (err, req, res) => {
~~~
vite.config.ts:28:40 - error TS6133: 'res' is declared but its value is never read.
28 proxy.on('error', (err, req, res) => {
~~~
vite.config.ts:31:33 - error TS6133: 'proxyReq' is declared but its value is never read.
31 proxy.on('proxyReq', (proxyReq, req, res) => {
~~~~~~~~
vite.config.ts:31:48 - error TS6133: 'res' is declared but its value is never read.
31 proxy.on('proxyReq', (proxyReq, req, res) => {
~~~
vite.config.ts:34:48 - error TS6133: 'res' is declared but its value is never read.
34 proxy.on('proxyRes', (proxyRes, req, res) => {
~~~
Found 12 errors.
Hi, Can I handle this issue?