react-native-skeleton-placeholder icon indicating copy to clipboard operation
react-native-skeleton-placeholder copied to clipboard

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

Open sophie-li opened this issue 3 years ago • 18 comments

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

sophie-li avatar May 03 '21 21:05 sophie-li

Yeah, i've the same problem. expecting them to change to masked-view since it still has performance issues.

Sayon1992 avatar May 05 '21 20:05 Sayon1992

+1

misag777 avatar May 08 '21 13:05 misag777

Hey guys, I'll check this

chramos avatar May 09 '21 16:05 chramos

+1

diazdell91 avatar May 15 '21 06:05 diazdell91

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

okimotoren avatar May 18 '21 08:05 okimotoren

I solved this issue with:

First, try to install:

yarn add @react-native-masked-view/masked-view

And run project. If an error occurs, like:

While trying to resolve module react-native-skeleton-placeholder from file xxxxx, ....

I make this pull request #50

rdgoutiyama avatar Jun 01 '21 17:06 rdgoutiyama

I think the npm publish was somehow messed up because:

https://cdn.jsdelivr.net/npm/[email protected]/lib/SkeletonPlaceholder.js (search for react-native-community here)

Does not match the source of https://github.com/chramos/react-native-skeleton-placeholder/blob/master/src/SkeletonPlaceholder.tsx.

@chramos mind publishing the library again?

andreialecu avatar Jun 24 '21 07:06 andreialecu

Can someone clarify if we need @react-native-masked-view/masked-view or @react-native-community/masked-view? Having both in the package.json is causing mergeDex error when building for android.

shikharsrivastava23 avatar Jul 08 '21 05:07 shikharsrivastava23

Can someone clarify if we need @react-native-masked-view/masked-view or @react-native-community/masked-view? Having both in the package.json is causing mergeDex error when building for android.

I used @react-native-community/masked-view, seems to work fine for now.

shikharsrivastava23 avatar Jul 09 '21 10:07 shikharsrivastava23

Can someone clarify if we need @react-native-masked-view/masked-view or @react-native-community/masked-view? Having both in the package.json is causing mergeDex error when building for android.

I have the same issue.

kimsean avatar Jul 12 '21 02:07 kimsean

Hi! This fix will be uploaded? Because I'm still facing this error.

MatiSera avatar Jul 28 '21 14:07 MatiSera

Version 5.0 uses @react-native-masked-view/masked-view. You will need to remove the older (community) one.

andreialecu avatar Jul 28 '21 14:07 andreialecu

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.

stoyan-frieze avatar Jul 28 '21 21:07 stoyan-frieze

I am getting the same error in version 5.

I have followed the below step

Installed Masked view and linear gradient libraries before

Below is SkeletonPlaceholder.js

const masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view")); const react_native_linear_gradient_1 = __importDefault(require("react-native-linear-gradient"));

But still I am getting below : Error: Unable to resolve module @react-native-community/masked-view from node_modules/react-native-skeleton-placeholder/lib/SkeletonPlaceholder.js: @react-native-community/masked-view could not be found within the project.

MaganAnkur avatar Jul 29 '21 01:07 MaganAnkur

Same issue here as @MaganAnkur

scblason avatar Aug 26 '21 22:08 scblason

more 1 here 🪂

felansu avatar Nov 10 '21 13:11 felansu

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.

I removed @react-native-masked-view/masked-view and restart then fix error

Choyeongdeok avatar Sep 16 '22 06:09 Choyeongdeok

Note: This package requires @react-native-masked-view/masked-view and react-native-linear-gradient

sanoobpookodan avatar Jun 05 '24 09:06 sanoobpookodan