D
D
Denioo2020-04-21 13:05:30
React
Denioo, 2020-04-21 13:05:30

React doesn't see the file?

Why can't react see a file in a folder that has another folder in it? I export by default but when I connect

import AnswersList from './AnswersList/AnswersList'

That gives an error
./src/components/ActiveQuiz/AnswersList/AnswersList.js
Module not found: Can't resolve 'reat' in 'D:\GitRepo\react_quiz\react_quiz\src\components\ActiveQuiz\AnswersList'

I can’t understand what the problem is, in this AnswersList folder, in addition to the file, there is a folder in which there is also a js file, and this file sees it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tigran Abrahamyan, 2020-04-21
@Denioo

AnswersList/AnswersList.jsReact is not imported correctly
in your file
import React from 'react';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question