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

React native project fails to compile on a new project #3

Closed
4 tasks done
sergioisidoro opened this issue Feb 5, 2022 · 1 comment
Closed
4 tasks done

React native project fails to compile on a new project #3

sergioisidoro opened this issue Feb 5, 2022 · 1 comment

Comments

@sergioisidoro
Copy link

sergioisidoro commented Feb 5, 2022

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

On a clean download and install, expo start should compile and start.

Current Behavior

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

on

const RNCMaskedView = requireNativeComponent<any>('RNCMaskedView');

It seems the issue has been reported here. I wonder if pinning masked view to the previous version would help.
react-native-masked-view/masked-view#130

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#142 (comment)

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

Failure Information (for bugs)

Module../node_modules/@react-native-community/masked-view/js/MaskedView.js
node_modules/@react-native-community/masked-view/js/MaskedView.js:14
  11 | import React from 'react';
  12 | import { View, StyleSheet, requireNativeComponent } from 'react-native';
  13 | 
> 14 | const RNCMaskedView = requireNativeComponent<any>('RNCMaskedView');
  15 | 
  16 | import { type MaskedViewProps } from './MaskedViewTypes';
  17 | 

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Clean all node modules
  2. yarn install
  3. expo start

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: Macbook air M1
@github-actions
Copy link

github-actions bot commented Feb 5, 2022

@sergioisidoro this issue was automatically closed because it did not follow our rules:

IMPORTANT: Please use the following link to create a new issue:

https://www.creative-tim.com/new-issue/soft-ui-pro-react-native

**If your issue was not created using the app above, it will be closed immediately.**



Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
👉  https://www.creative-tim.com/bundles
👉  https://www.creative-tim.com


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