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

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

Open
sergioisidoro opened this issue Feb 5, 2022 · 1 comment

Comments

@sergioisidoro
Copy link

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

@sergioisidoro sergioisidoro changed the title [Bug] React native project fails to build on clean install [Bug] React native project fails to build on clean install on web Feb 5, 2022
@sergioisidoro
Copy link
Author

Clarification: this seems to be related to the react native web. And masked view, as well as other dependencies seem to not support it. It was wrong to assume this would work immediately on react native web.

Maybe adding a warning or a documentation that this not yet work in React Native web would maybe save some time to someone :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant