question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SkeletonPlaceholder.js seems to be importing "@react-native-community/masked-view" @ v4.0.0.

See original GitHub issue

Got the following error on version 4.0.0

Unable to resolve module @react-native-community/masked-view from ... /lib/SkeletonPlaceholder.js: @react-native-community/masked-view could not be found within project

Screen Shot 2021-05-03 at 5 50 52 PM

Version: 4.0.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
stoyan-friezecommented, Jul 28, 2021

I think I am having conflict issues between @react-native-community/masked-view and @react-native-masked-view/masked-view - ‘Invariant Violation: Tried to register two views with the same name RNCMaskedView, js engine: hermes’ But I am using react-navigation which has @react-native-community/masked-view as a dependency so I can’t remove it. Can they coexist? Surely, I am not the only person using react navigation.

9reactions
okimotorencommented, May 18, 2021

Hello, I had the same situation, and i solved it by the change below.

Solution:

in node_modules/react-native-skeleton-placeholder/lib/SkeletonPlaceholder.js

Screen Shot 2021-05-18 at 16 53 26

before : const masked_view_1 = __importDefault(require("@react-native-community/masked-view")); after : const masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view"));

It seemed to be happened with #37 .

I hope it could help someone. @sophie-li @chramos

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · chramos/react-native-skeleton-placeholder
SkeletonPlaceholder is a React Native library to easily create an amazing loading ... seems to be importing "@react-native-community/masked-view" @ v4.0.0.
Read more >
react-native-skeleton-placeholder
SkeletonPlaceholder is a React Native library to easily create an amazing loading effect.. Latest version: 5.2.4, last published: a month ...
Read more >
React Native: Tried to register two views with the same ...
To resolve this, either remove any dependency to @react-native-community/masked-view or, as in my case, patch react-native-skeleton-placeholder ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found