GithubHelp home page GithubHelp logo

Comments (7)

kelset avatar kelset commented on April 25, 2024

@Etaliya it's really hard to understand what's going on, since you are not providing any type of information about your system nor repro steps.

Can you run npx react-native info and paste the content in a comment there?
Also, can you add clear, reproducible steps so that a person not using your project can verify the error?

from react-native-deprecated-modules.

cipolleschi avatar cipolleschi commented on April 25, 2024

Which platform are you targeting? From the error, it looks like that the NativeEventEmitter has been initialized with null.
If we crawl the stacktrace, the referred file is PushNotificationIOS.js.
Here, it specify that it will return null as NativeEventEmitter parameter only if the platform is not iOS.

Could you provide a repro for this error?

from react-native-deprecated-modules.

Etaliya avatar Etaliya commented on April 25, 2024

@kelset I just integrate this dependency and set module-resolver in babel.config.js file and the run project and got this error.

var path = require('path');

module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
['@babel/plugin-proposal-decorators', {legacy: true}],
[
'module-resolver',
{
root: ['.'],
resolvePath(sourcePath, currentFile) {
if (
sourcePath === 'react-native' &&
!(
(
currentFile.includes('node_modules/react-native/') || // macos/linux paths
currentFile.includes('node_modules\react-native\')
) // windows path
) &&
!(
currentFile.includes('resolver/react-native/') ||
currentFile.includes('resolver\react-native\')
)
) {
return path.resolve(__dirname, 'resolver/react-native');
}
return undefined;
},
},
],
],
};

from react-native-deprecated-modules.

kelset avatar kelset commented on April 25, 2024

Can you run npx react-native info and paste the content in a comment there?

Also, why would you manually add this dependency in your project?

from react-native-deprecated-modules.

Etaliya avatar Etaliya commented on April 25, 2024

@kelset info Fetching system and libraries information...
System:
OS: macOS 12.5
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 1.75 GB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
Watchman: 2022.12.26.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

from react-native-deprecated-modules.

kelset avatar kelset commented on April 25, 2024

why did you manually add react-native-deprecated-modules in your project? what is the use case?

from react-native-deprecated-modules.

yashukla47 avatar yashukla47 commented on April 25, 2024

Hey @Etaliya how did you solve it? please help

from react-native-deprecated-modules.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.