해결된 질문
작성
·
281
0
운영체제 윈 10
현재 REACT-NATIVE프로젝트는 아래의 명령어를 통해
0.66으로 다운로드하였습니다.
PS C:\Users\asus> npx react-native init GChatProject --template react-native-template-typescript@6.8.*
npx react-native run-android를 하였을 때
위 명령어를 실행 한
powershell에서는 아래의 로그를 뛰어주고 있습니다.
-----------------------------------------
PS C:\Users\asus\GChatProject> npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 870 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app...
> Task :app:installDebug
Installing APK 'app-debug.apk' on 'Nexus_5_API_33(AVD) - 13' for app:debug
Installed on 1 device.
BUILD SUCCESSFUL in 9s
31 actionable tasks: 2 executed, 29 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.gchatproject/.MainActivity }
------------------------------------
그리고 metro 서버가 뛰어지는데요
문제는 metro 서버에서 아래와 같은에러를 발생하고 있습니다 ㅠㅠ
-----------------------------------
To reload the app press "r"
To open developer menu press "d"
Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at stableHash (C:\Users\asus\GChatProject\node_modules\metro-cache\src\stableHash.js:19:8)
at Object.getCacheKey (C:\Users\asus\GChatProject\node_modules\metro-transform-worker\src\index.js:593:7)
at getTransformCacheKey (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler\getTransformCacheKey.js:24:19)
at new Transformer (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler\Transformer.js:48:9)
at C:\Users\asus\GChatProject\node_modules\metro\src\Bundler.js:22:29
at runNextTicks (node:internal/process/task_queues:60:5)
at process.processTimers (node:internal/timers:511:9) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
BUNDLE ./index.js
error: TypeError: Cannot read properties of undefined (reading 'transformFile')
at Bundler.transformFile (C:\Users\asus\GChatProject\node_modules\metro\src\Bundler.js:48:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.transform (C:\Users\asus\GChatProject\node_modules\metro\src\lib\transformHelpers.js:101:12)
at async processModule (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler\traverseDependencies.js:137:18)
at async traverseDependenciesForSingleFile (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler\traverseDependencies.js:131:3)
at async Promise.all (index 0)
at async initialTraverseDependencies (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler\traverseDependencies.js:114:3)
at async DeltaCalculator._getChangedDependencies (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:164:25)
at async DeltaCalculator.getDelta (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:94:16)
at async DeltaBundler.buildGraph (C:\Users\asus\GChatProject\node_modules\metro\src\DeltaBundler.js:50:5)
-------------------------------------
덕분에 잘해결됬습니다 감사합니다..