Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Requiring unknown module "699"

I've tried importing my Settings screen to my drawer config in order to import both of them on app.js but I get an error requiring a certain module "699". Can anyone help please?

import React from 'react';
import { Platform, Dimensions} from 'react-native';
import { createDrawerNavigator, createAppContainer } from 'react-navigation';

import SettingScreen from '../Menu/SettingScreen'

const WIDTH = Dimensions.get('window').width;

const DrawerConfig = {
    drawerWidth: WIDTH*0.83,
}

const DrawerNavigator = createDrawerNavigator(
    {
    Settings: {
       screen: SettingScreen
    },
},
DrawerConfig
);

export default createAppContainer(DrawerNavigator);
like image 904
Camille Basbous Avatar asked Oct 26 '25 07:10

Camille Basbous


1 Answers

This type of error is often a problem regarding Metro Bundler. To solve this issue, close metro bundler and re-run your application.


If that doesn't work, clear the Metro Bundler cache as mentioned here. Run these commands to clear metro bundler cache but do this at YOUR own risk.

RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 -  watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache

npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache

Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
like image 167
kemicofa ghost Avatar answered Oct 28 '25 21:10

kemicofa ghost



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!