Skip to content

Ionic 새 프로젝트 생성후 ionic serve 실행 시 TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined 에러 발생 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sungkwangsong opened this issue Feb 16, 2020 · 1 comment
Assignees
Labels
bug Something isn't working ionic technical-support

Comments

@sungkwangsong
Copy link
Owner

Ionic 정보

Ionic:

   Ionic CLI       : 6.1.0 (/Users/sungkwang/.nodenv/versions/12.14.1/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 5.0.0

Capacitor:

   Capacitor CLI   : 1.5.0
   @capacitor/core : 1.5.0

Utility:

   cordova-res : 0.9.0
   native-run  : 0.3.0

System:

   NodeJS : v12.14.1 (/Users/sungkwang/.nodenv/versions/12.14.1/bin/node)
   npm    : 6.13.7
   OS     : macOS Catalina
  1. Ionic 설치 후 Ionic create 로 새로운 프로젝트 생성 (react 타입으로 프로젝트 생성)
  2. ionic serve 명령어 실행시 ERR_INVALID_ARG_TYPE 타입 에러발생
> react-scripts start
[react-scripts] ℹ 「wds」: Project is running at http://10.0.43.5/
[react-scripts] ℹ 「wds」: webpack output is served from /
[react-scripts] ℹ 「wds」: Content not from webpack is served from /Users/saltfactory/Projects/SSHanbit/SSHBApp/public
[react-scripts] ℹ 「wds」: 404s will fallback to /index.html
[react-scripts] Starting the development server...
[react-scripts]
[react-scripts] You can now view SSHBApp in the browser.
[react-scripts]   Local:            http://localhost:8100/
[react-scripts]   On Your Network:  http://10.0.43.5:8100/
[react-scripts] Note that the development build is not optimized.
[react-scripts] To create a production build, use npm run build.

[INFO] Development server running!

       Local: http://localhost:8100

       Use Ctrl+C to quit this process

[INFO] Browser window opened to http://localhost:8100!

[react-scripts] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
[react-scripts]     at validateString (internal/validators.js:112:11)
[react-scripts]     at Object.join (path.js:1039:7)
@sungkwangsong sungkwangsong self-assigned this Feb 16, 2020
@sungkwangsong
Copy link
Owner Author

sungkwangsong commented Feb 16, 2020

  1. pakcage.json 파일을 열어서 react-scripts 버전을 3.3.0 에서 3.4.0 로 수정
"react-scripts": "3.4.0",
  1. package.json 수정 후 npm install로 패키지 재설치.
  2. ionic serve 실행

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ionic technical-support
Projects
None yet
Development

No branches or pull requests

1 participant