Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed images required from node_modules #6822

Closed
wants to merge 3 commits into from

Conversation

bestander
Copy link
Contributor

This fixes #6638 by resolving AssetRegistry relatively.

@bestander
Copy link
Contributor Author

cc @davidaurelio

@bestander
Copy link
Contributor Author

David, when Haste update is propagated I'll be happy to add a test for this case.

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @davidaurelio, @amasad and @martinbigio to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Apr 5, 2016
@ide
Copy link
Contributor

ide commented Apr 5, 2016

Travis tests are failing:

:0: failed: caught "NSInternalInconsistencyException", "*** Assertion failure in -[RCTTestRunner runTest:module:initialProps:configurationBlock:expectErrorBlock:], /Users/travis/build/facebook/react-native/Libraries/RCTTest/RCTTestRunner.m:154: RedBox error: Unhandled JS Exception: Requiring unknown module "../../../../Libraries/Image/AssetRegistry.js". If you are sure the module is there, try restarting the packager or running "npm install"."

@bestander
Copy link
Contributor Author

Thanks, James.
Maybe it needs haste change to propagate first

On Wednesday, 6 April 2016, James Ide [email protected] wrote:

Travis tests are failing:

:0: failed: caught "NSInternalInconsistencyException", "*** Assertion
failure in -[RCTTestRunner
runTest:module:initialProps:configurationBlock:expectErrorBlock:],
/Users/travis/build/facebook/react-native/Libraries/RCTTest/RCTTestRunner.m:154:
RedBox error: Unhandled JS Exception: Requiring unknown module
"../../../../Libraries/Image/AssetRegistry.js". If you are sure the module
is there, try restarting the packager or running "npm install"."


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6822 (comment)

@davidaurelio
Copy link
Contributor

node-haste v2.9.5 is published. Please update package.json to "node-haste": "~2.9.5", and bump the version in packager/package.json

@bestander
Copy link
Contributor Author

will do, thanks

On Wed, Apr 6, 2016 at 11:15 AM, David Aurelio [email protected]
wrote:

node-haste v2.9.5 is published. Please update package.json to "node-haste":
"~2.9.5", and bump the version in packager/package.json


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6822 (comment)

@davidaurelio davidaurelio self-assigned this Apr 6, 2016
@davidaurelio
Copy link
Contributor

oh, this needs even more changes. Lovely. Let me come to your desk

@facebook-github-bot
Copy link
Contributor

@bestander updated the pull request.

@davidaurelio
Copy link
Contributor

That looks like a sound solution! I couldn’t have come up with anything better than this!

@davidaurelio
Copy link
Contributor

@facebook-github-bot import

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in d0566d8 Apr 6, 2016
mkonicek pushed a commit that referenced this pull request Apr 6, 2016
Summary:This fixes #6638 by resolving AssetRegistry relatively.
Closes #6822

Reviewed By: davidaurelio

Differential Revision: D3144463

Pulled By: bestander

fb-gh-sync-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
fbshipit-source-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
ide pushed a commit that referenced this pull request Apr 6, 2016
Summary:This fixes #6638 by resolving AssetRegistry relatively.
Closes #6822

Reviewed By: davidaurelio

Differential Revision: D3144463

Pulled By: bestander

fb-gh-sync-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
fbshipit-source-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
zebulgar pushed a commit to nightingale/react-native that referenced this pull request Jun 18, 2016
Summary:This fixes facebook#6638 by resolving AssetRegistry relatively.
Closes facebook#6822

Reviewed By: davidaurelio

Differential Revision: D3144463

Pulled By: bestander

fb-gh-sync-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
fbshipit-source-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
cpojer pushed a commit to facebook/metro that referenced this pull request Jan 26, 2017
Summary:This fixes facebook/react-native#6638 by resolving AssetRegistry relatively.
Closes facebook/react-native#6822

Reviewed By: davidaurelio

Differential Revision: D3144463

Pulled By: bestander

fb-gh-sync-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
fbshipit-source-id: d3eeb24ae9e08a32f742c50ae5f0314fd33d1b6b
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.23.0-rc1]Unable to resolve modules AssestRegistry when require image inside node_modules
4 participants