I have a folder structure like in my
file5 I want to import class from
file1 has class
I want to import it like:
import Class1 from ..../folder1/file1
but it is not being imported. Its giving me import error
What is wrong in here ??
You have typo. Instead of
import Class1 from '..../folder1/file1' should be
import Class1 from '../../../folder1/file1'
../ means that you go to one folder above.
Hope it will help you