Nutlope / llamacoder

Open source Claude Artifacts – built with Llama 3.1 405B
https://www.llamacoder.io/
2.16k stars 340 forks source link

/App.tsx: Could not find dependency: 'axios' relative to '/App.tsx' (3:0) #19

Open percindeniz opened 1 month ago

percindeniz commented 1 month ago

Something went wrong

/App.tsx: Could not find dependency: 'axios' relative to '/App.tsx' (3:0)

1 | import React, { useState, useEffect } from 'react'; 2 | import { Chat, Message, Upload } from 'lucide-react';

3 | import axios from 'axios'; ^ 4 | 5 | interface Message { 6 | text: string;

namanbnsl commented 4 weeks ago

This is caused because the sandbox env doesn't have axios installed. To fix this in the make suggestions input box, tell it to replace axios with fetch.

dthajal1 commented 3 weeks ago

@percindeniz, what was your prompt when you got this error?