Skip to content

How to import directories from project root without relative paths? #1826

@volkanunsal

Description

@volkanunsal

I have a folder called actions at the root of my project and when I import it using an absolute path, flow complains that it cannot find the folder. But when I use relative paths, it works. Is there something I'm doing wrong?

import ax from 'actions' // Doesn't work
import ax from '../actions'  /// Works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions