Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
percindeniz opened this issue Aug 13, 2024 · 2 comments

Comments

@percindeniz
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants