Skip to content

Cannot read property 'assetsPath' of null (react-native link) #18249

@msageryd

Description

@msageryd

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 8.6.0
Yarn: 1.2.1
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found

Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-native: ^0.54.0 => 0.54.0

Expected Behavior

Should link all native libs.

Actual Behavior

react-native-link tells me that all libs are linked (as they are), but at the end there is a "linking assets.." that seems to go wrong.

I get Cannot read property 'assetsPath' of null

Update:
I get the same error when I try to unlink a library, i.e.:
react-native unlink react-native-vector-icons

gives me:

rnpm-install info Unlinking react-native-vector-icons ios dependency
rnpm-install info Platform 'ios' module undefined has been successfully unlinked
rnpm-install info Unlinking assets from ios project
rnpm-install info Unlinking assets from android project
rnpm-install ERR! It seems something went wrong while unlinking. Error: Cannot read property 'assetsPath' of null

Steps to Reproduce

I upgraded from RN 0.51 to 0.54 via react-native-git-upgrade. I was told there where conflicts in the project file, but I didn't find any conflicts.

The project itself does not run after upgrade to 0.54. This is as usual when I try to upgrade RN. after some tinkering it usually starts to work, but not this time. I suspect the "assetsPath" to be the problem.

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