Skip to content

Modules resolution does not support relative paths #13448

Description

@GianlucaGuarini

Description

The modules resolution does not support relative paths out of the project root

Reproduction Steps and Sample Code

In any of index.ios.js or index.android.js

import something from '../file-in-the-parent-directory'

Solution

I have spent hours using symlinks, npm link, changing the project root via cli.config.js projectRoots and last but not least babel-plugin-module-resolver but none of these solutions seems to work properly fine for such a trivial behavior

Additional Information

  • React Native version: 0.43.2
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: Terminal + Sublime Text

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions