0.1.14 • Published 8 months ago
@mitulabs/agent-widget v0.1.14
MituAI Agent Widget - Quick Setup Guide
I've created all the necessary components to fix the build errors. Here's how to properly set up your project:
2. Build Steps
Clean your project:
rm -rf node_modules rm -rf dist rm package-lock.json
Install dependencies:
npm install
Build the package:
npm run build
3. Testing Locally
To test your widget locally:
Link the package:
npm link
Create a test React app:
npx create-react-app mituai-test cd mituai-test npm link mituai-chat-widget
In your test app's App.js:
import React from 'react'; import { MituChat } from '@mitulabs/agent-widget'; function App() { const config = { apiKey: 'test-api-key', primaryColor: '#0088cc', enableVoiceChat: true, }; return ( <div className="App"> <header className="App-header"> <h1>MituAI Chat Widget Test</h1> </header> <MituChat config={config} /> </div> ); } export default App;
Start your test app:
npm start
Good luck with your MituAI chat widget! Let me know if you need any further assistance.