개발

[React Native] No bundle URL present.Make sure you're running a packager server or have included a .jsbundle file in your application bundle

dohye1 2022. 11. 6. 15:17
반응형

후우...일주일만에 React native 프로젝트를 실행시켜보니 켜지질 않고, 타이틀에 보여지는 에러메시지가 찍힌다.

일주일동안 내가 무엇을했길래 안켜지는것인가...,,

 

에러 메시지를 구글링해보다가 아래 방법을 찾았다!

cd into YOUR_PROJECT/ios and rm -r build, then run again react-native run-ios

https://stackoverflow.com/questions/43949607/no-bundle-url-present-react-native

 

No bundle URL present (react native)

Just installed react native and trying to get Hello World up and running. Been receiving this error for the last few hours: "No bundle URL present.Make sure you're running a packager server or h...

stackoverflow.com

위 내용을 따라해봤는데 여전히 에러가난다.

근데 yarn ios를 실행시킨 터미널에서는 성공로그가 찍히는것을 보면

시뮬레이터 자체의 문제같음

 

자세한 로그를 보기위해 xcode로도 실행해봤는데 빌드 성공이라고 뜬다!

 

그래서 xcode 버전을 업데이트했는데, 이제 실행이 잘된다...!

 

내가 개발환경에 영향을 줬을법한 것을 생각해봤는데,

아마 nvm으로 노드 버전을 변경했던것같음!

이것때문일 가능성이 크다

 

근데 노드버전을 이전으로 되돌리는것보다 xcode를 업데이트하는게 우선일것같아서 해보니 다행히 잘되는고만

결론

xcode를 업데이트해라

 

제대로 된 해결책인지는 모르겠지만 일단 업데이트를 해보는것을 추천합니다