Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

부귀영화

[!] Invalid Podfile file: 767: unexpected token at '. 해결법 본문

개발/React Native

[!] Invalid Podfile file: 767: unexpected token at '. 해결법

Jinhoda 2022. 1. 29. 21:09

📌 Error Message

internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module '/Users/jjh/Development/Project/WIT/TOSS/node_modules/@react-native-community/cli/build/bin.js
Debugger listening on ws:/127.0.0.1:57442/57b7c7d2-e798-47ca-b198-71e6ed6e777d
For help, see: https:/nodejs.org/en/docs/inspector
Debugger attached.
Waiting for the debugger to disconnect...'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

[!] Invalid `Podfile` file: 767: unexpected token at ''.

 #  from /Users/jjh/Development/Project/WIT/TOSS/ios/Podfile:7
 #  -------------------------------------------
 #  target 'TOSS' do
 >    config = use_native_modules!
 #  
 #  -------------------------------------------

✅ How to Solve

if you use VSCode, make sure you disable Debug: Toggle Auto Attach

cmd + shift + p -> Debug: toggle auto attach -> disable

'개발 > React Native' 카테고리의 다른 글

React Navgation navigate with object params  (0) 2022.03.08
Could not connect to development server  (0) 2022.01.29