Skip to content

Conversation

tom-un
Copy link
Collaborator

@tom-un tom-un commented Sep 1, 2019

Summary

The recent PR #146 ("add normalize/processColorObject.js for ios and macos") caused a regression. At runtime in ios and macOS a RedBox error saying that processColor is undefined. The reason was because require('processColor') was returning an empty object due to circular dependencies between the new modules normalizeColor, normalizeColorObject, processColor and processColorObject. The fix is to move the require()'s within the functions that need them so that they are executed after the module.exports.

It unclear how PR 146 passed validation. I'm guessing one of the npm dependencies used for packaging changed since the PR impacting the module order.

Microsoft Reviewers: Open in CodeFlow

@tom-un tom-un requested a review from acoates-ms as a code owner September 1, 2019 23:25
@tom-un tom-un self-assigned this Sep 1, 2019
@tom-un tom-un merged commit 5eea800 into master Sep 2, 2019
@acoates-ms acoates-ms deleted the processColorFix branch October 21, 2019 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant