Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
axios no se pudo encontrar dentro del proyecto o en estos directorios: node_modules

Estoy creando una aplicación móvil con React Native, cada vez que intento importar Axios no puedo importarlo. He instalado Axios y todo está bien. pero me sale este error

 Android Bundling failed 1097ms Unable to resolve module axios from F:\HS International\araf\features\ChatWindow.js: axios could not be found within the project or in these directories: node_modules If you are sure the module exists, try these steps: 1. Clear watchman watches: watchman watch-del-all 2. Delete node_modules and run yarn install 3. Reset Metro's cache: yarn start --reset-cache 4. Remove the cache: rm -rf /tmp/metro-* 1 | import { React, useState } from 'react'; 2 | import { Alert, ScrollView, SafeAreaView, Text, StyleSheet, TextInput, Button, TouchableHighlight, Image } from 'react-native'; > 3 | import axios from 'axios'; | ^ 4 | 5 | function ChatWindow(props) { 6 | const [userMessage, setUserMessage] = useState("");
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Intenté importar como lo haces tú, pero supongo que tiene algunos problemas. Puedes intentar requerirlo así.

 const axios = require('axios').default;
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!