Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[config] Fix relative module resolution for config files #2744

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

nokutana
Copy link
Contributor

@nokutana nokutana commented Oct 1, 2020

I have a number of different app configs and was receiving a Failed to read config / MODULE_NOT_FOUND error on expo start since they import shared config variables. This sets configFile as the filename argument to require-from-string so relative modules can be resolved properly

I was receiving a `MODULE_NOT_FOUND` error with my config since it references relative modules. This sets `configFile` as the `filename` argument to `require-from-string` so relative modules can be resolved properly
Copy link
Contributor

@EvanBacon EvanBacon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good work, good test.

@EvanBacon EvanBacon merged commit 0464f6c into expo:master Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants