Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

415
Visualizações
Why do I get the error "None of these files exist:", even though the file does exist?

I am trying to import something from ./components/task using this line of code:

import Task from './components/task';

but I get the error

None of these files exist:
  * components\task(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  * components\task\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  1 | import React from 'react';
  2 | import { StyleSheet, Text, View } from 'react-native';
> 3 | import Task from './components/task';
    |                   ^
  4 |
  5 | export default function App() {
  6 |   return (

I have no idea why I am getting this error. The screenshot clearly shows the path does exist.

This is the error I get, even though the path does exist.

https://i.imgur.com/VhMWUHt.png

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

from The Photo and code, I see nothing wrong but try to put ".js" after ./components/task.js just try it.

Or check that the task code is right or has export default

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda