본문 바로가기
코딩 이야기

[코린이 앱 개발 2] 오류 모음집, 다시 튜토리얼 시작

by oozoobigstar 2022. 12. 18.
반응형

안녕하세요.

오늘도 아래 사이트들과 함께하는 즐거운 코딩 시간~✨

글 길이가 조금 많이 길어질 것 같으니,, ~ 그 점 참고해 주세요

 

1. 지난 번에 이어 다시 시작해 볼게요! 

리액트 네이티브로 아래글의 두 번째 순서인 Login 시스템을 구축해보겠습니다.

https://sendbird.com/ko/blog/tutorial-react-native-%EB%A9%94%EC%8B%9C%EC%A7%80-%EC%95%B1-%EC%A0%9C%EC%9E%91%ED%95%98%EA%B8%B0

 

Tutorial: React Native 메시지 앱 제작하기

안내드립니다: 최근 (2017년 11월 10일 기준) 센드버드 샘플 코드와 함께 본 튜터리얼을 최신버전으로 업데이트 하였습니다. 가장 최신의 ‘React Native 채팅 튜터리얼’ […]

sendbird.com

정말 왜 그러는지 모르겠지만 오류라는 오류는 다 걸리는 것 같아요. RN(react native)설치만 해도 4일 걸렸는데,

 

- 오류 모음

오류 1) npm start 라는 명령어에서부터 오류가 뜨네요.

아주 즐겁답니다!

문제 해결 사이트

https://stackoverflow.com/questions/31976722/start-script-missing-error-when-running-npm-start

 

Start script missing error when running npm start

I'm receiving this error when trying to debug my node application using the npm start command. Error: npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" &q...

stackoverflow.com

저는 위에 것을 해봐도 안 되어서 다른 방법을 사용했어요

https://www.youtube.com/watch?v=h4BIWEFQGI4 

이유가 뭔지는 지금까지도 잘 모르겠달까요.

이거 하기 전에 노트북도 한 번 껐다 켰습니다.

제일 처음 가지고 있던 코드 ⇒ 그 다음으로 수정한 코드 ⇒ 최종으로 적은 코드

 

오류 2) 그 후 또 다른 오류 발생!

바로 위 오류는 이 사이트의 첫 댓글로 해결했습니다 (디렉토리들을 삭제하는 해결법)

분명 디렉토리 2개를 삭제했는데 그대로 있는 마법,,?

https://stackoverflow.com/questions/53545800/internal-modules-cjs-loader-js582-throw-err

 

internal/modules/cjs/loader.js:582 throw err

I'm getting following Console Error. Error : Cannot find module Here is the full error i'm getting in console. What should I do? internal/modules/cjs/loader.js:582 throw err; ^ Error: Ca...

stackoverflow.com

 

 

오류 3) "React-Native: Application has not been registered error"

이런 오류를 겪을 땐 바로 아래 사이트 참고 

https://stackoverflow.com/questions/38340360/react-native-application-has-not-been-registered-error

 

React-Native: Application has not been registered error

I am currently going through the React-Native tutorials. I began with the Getting Started tutorial, where I made a new react native project and successfully managed to run the project on my device....

stackoverflow.com

 

오류 4) https://github.com/facebook/create-react-app/issues/846

해결법 (사이트 댓글 참조):

to fix ng new app, I manually installed node-error-ex after 'ng new app' failed.
cd app
npm i https://github.com/Qix-/node-error-ex
npm install

 

오류 5) Cannot find module 'babel-preset-expo'

https://github.com/oceanbit/react-native-responsive-ui/issues/25

 

TransformError: Couldn't find preset "babel-preset-expo" relative to directory · Issue #25 · oceanbit/react-native-responsive-

Getting an error when running for the first time in a new project. bundling failed: "TransformError: /Users/kayluhb/Projects/TestProject/node_modules/react-native-responsive-ui/lib/index.js: C...

github.com

 


 

여러분 여기서 부터 다른 내용입니다. 

제가 느끼기로 원래 진행하던 앱(위에 하던 것)에 너무 문제가 많고,

제가 보고 따라한 사이트도 조금 날짜가 지나서 현재와 좀 다른 차이점을 많이 보이는 것 같다는 생각을 했습니다.

그래서 다른 사이트를 찾아 튜토리얼을 따라하고 있습니다. 

아래 사이트입니다.

현재까지는 오류가 하나도 없었고 아래 사이트를 따라 하는한 저자가 말하는 그대로 보여졌습니다.

꽤 기분이 좋더군요. 여러분도 아래 사이트를 참고하셔서 튜토리얼을 마치시기 바랍니다. 

https://jeffgukang.github.io/react-native-tutorial/docs/basic-tutorial/basic-features(todolist)/01-getting-started/getting-started-kr.html 

 

시작하기

React Native Tutorial For Beginners - 2019

jeffgukang.github.io

 

전에 까지 하던 것도 어찌되었든 제가 열심히 했던 것들이어서 따로 삭제/수정은 안 했습니다. 

나중에 보면 또 다른 곳에 도움이 될 수 있으니까요.

그럼 모두 화이팅 🙌

 

아 저 유튜브 시작했어요,,^~^

https://youtu.be/Hsl2JhuRIfc 

반응형