Я новичок в React Native и не знаком с конфигурациями для создания пакета Android.
Я получаю следующую ошибку при запуске команды npx React-native Bundle --platform android
error The "path" argument must be of type string. Received undefined.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at Object.dirname (node:path:739:5)
at buildBundleWithConfig (E:\Projects\app\node_modules\@react-native\community-cli-plugin\dist\commands\bundle\buildBundle.js:67:42)
at Object.buildBundle [as func] (E:\Projects\app\node_modules\@react-native\community-cli-plugin\dist\commands\bundle\buildBundle.js:27:10)
at async Command.handleAction (E:\Projects\app\node_modules\@react-native-community\cli\build\index.js:139:9)
metro.config.js
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
/**
* Metro configuration
* https://metrobundler.dev/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
Подробнее здесь: https://stackoverflow.com/questions/798 ... act-native