leotm / react-native-template-new-architecture

React Native 0.71.12 โšก M1, Ubuntu ๐Ÿ’ป Hermes โš™๏ธ Fabric ๐Ÿš… Turbo Modules ๐Ÿ’จ TypeScript 5 โœ… Gradle 7.6, JDK 19, NDK 25 ๐ŸŽ Xcode 15b, Sonoma 14b, Ruby 3 ๐Ÿ’Ž Bison 2.3 ๐Ÿฆฌ ccache โ™ป๏ธ Yarn 4rc ๐Ÿ“ฆ ESLint ๐Ÿงน Prettier โœจ SES, LavaMoat, Buck2 ๐Ÿšง Babel ๐Ÿ—ผ GitHub Actions โœ”๏ธ Node 19 โฌข Storybook 6.5rc ๐Ÿ““ libs ๐Ÿ“š for curious early adopters :suspect: #RNEU #APPJS
https://reactnative.dev/blog/2022/06/16/resources-migrating-your-react-native-library-to-the-new-architecture#migration-status-of-popular-libraries
239 stars 29 forks source link

error: index.js: The "id" argument must be of type string. Received undefined #1732

Open walidhousni30 opened 1 year ago

walidhousni30 commented 1 year ago

Hello i m having a major issue im trying to run the project but i have this error

error: index.js: The "id" argument must be of type string. Received undefined

My metro.config.js config `const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config'); const path = require('path')

/**

module.exports = mergeConfig(getDefaultConfig(__dirname), config); `

leotm commented 1 year ago

it's hard to tell atm but noted unstable_enableSymlinks and unstable_enablePackageExports are RN 0.72 beta features https://reactnative.dev/blog/2023/06/21/0.72-metro-package-exports-symlinks#enabling-beta-features

then unstable_ prefix removed in RN 0.73+ (enabled by default) https://reactnative.dev/blog/2023/06/21/package-exports-support#the-future-stable-exports-enabled-by-default

a repro would be great and any more detail on your use case

otherwise i'll look into upgrading to RN 0.72.3 (then 0.72.4)

then enabling Metro beta features ^