llamacoder icon indicating copy to clipboard operation
llamacoder copied to clipboard

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

Open percindeniz opened this issue 1 year ago • 2 comments

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;

percindeniz avatar Aug 13 '24 12:08 percindeniz

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.

namanbnsl avatar Aug 16 '24 05:08 namanbnsl

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

dthajal1 avatar Aug 19 '24 21:08 dthajal1