Skip to content

[Bug] React native project fails to build on clean install on web #4

Open
@sergioisidoro

Description

@sergioisidoro

Version

1.0.0

Reproduction link

#3

Operating System

Big Sur 11.5.2

Device

Macbook air M1

Browser & Version

Chrome (latest), Brave (latest)

Steps to reproduce

  1. Download repo
  2. yarn install
  3. expo stat

What is expected?

Project to compile without errors.

What is actually happening?

TypeError: Object(...) is not a function
on

const RNCMaskedView = requireNativeComponent('RNCMaskedView');


Solution

It seems the issue has been reported here. I wonder if pinning masked view to the previous version would help. It is also possible that this is due to this project using the old version of the package, as this comment mentions:

react-native-masked-view/masked-view#130
react-native-masked-view/masked-view#142 (comment)

You are probably using the old package name @react-native-community/masked-view instead of @react-native-masked-view/masked-view

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions