Comments (7)
@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.
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.
@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.
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.
@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.
why did you manually add react-native-deprecated-modules
in your project? what is the use case?
from react-native-deprecated-modules.
Hey @Etaliya how did you solve it? please help
from react-native-deprecated-modules.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-deprecated-modules.