You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
20:34:26 [vite] Internal server error: Transform failed with 2 errors:
F:/AI/AI_Dev/bolt.new-any-llm/app/components/chat/BaseChat.tsx:116:10: ERROR: The symbol "provider" has already been declared
F:/AI/AI_Dev/bolt.new-any-llm/app/components/chat/BaseChat.tsx:116:10: ERROR: The symbol "setProvider" has already been declared
Plugin: vite:esbuild
File: F:/AI/AI_Dev/bolt.new-any-llm/app/components/chat/BaseChat.tsx:116:10
The symbol "provider" has already been declared
114| ) => {
115| const TEXTAREA_MAX_HEIGHT = chatStarted ? 400 : 200;
116| const [provider, setProvider] = useState(DEFAULT_PROVIDER);
| ^
117| const [apiKeys, setApiKeys] = useState<Record<string, string>>({});
118|
The symbol "setProvider" has already been declared
114| ) => {
115| const TEXTAREA_MAX_HEIGHT = chatStarted ? 400 : 200;
116| const [provider, setProvider] = useState(DEFAULT_PROVIDER);
| ^
117| const [apiKeys, setApiKeys] = useState<Record<string, string>>({});
118|
Can you ensure you're on latest main branch and try this again? There is currently just one reference to instantiating provider/setProvider via useState on line 28 of BaseChat.
Can you ensure you're on latest main branch and try this again? There is currently just one reference to instantiating provider/setProvider via useState on line 28 of BaseChat.
Thank you very much. After pulling the latest branch, the problem is resolved!
Describe the bug
There is an Error in the latest version.
20:34:26 [vite] Internal server error: Transform failed with 2 errors:
F:/AI/AI_Dev/bolt.new-any-llm/app/components/chat/BaseChat.tsx:116:10: ERROR: The symbol "provider" has already been declared
F:/AI/AI_Dev/bolt.new-any-llm/app/components/chat/BaseChat.tsx:116:10: ERROR: The symbol "setProvider" has already been declared
Plugin: vite:esbuild
File: F:/AI/AI_Dev/bolt.new-any-llm/app/components/chat/BaseChat.tsx:116:10
The symbol "provider" has already been declared
114| ) => {
115| const TEXTAREA_MAX_HEIGHT = chatStarted ? 400 : 200;
116| const [provider, setProvider] = useState(DEFAULT_PROVIDER);
| ^
117| const [apiKeys, setApiKeys] = useState<Record<string, string>>({});
118|
The symbol "setProvider" has already been declared
114| ) => {
115| const TEXTAREA_MAX_HEIGHT = chatStarted ? 400 : 200;
116| const [provider, setProvider] = useState(DEFAULT_PROVIDER);
| ^
117| const [apiKeys, setApiKeys] = useState<Record<string, string>>({});
118|
Link to the Bolt URL that caused the error
http://localhost:5173/
Steps to reproduce
Maybe caused by this commit:
SHA-1: 936a9c0
fix: respect provider choice from UI
Expected behavior
shouldn't display this error.
Screen Recording / Screenshot
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: