Razzle: create-razzle-app 쀑 μ •μ˜λ˜μ§€ μ•Šμ€ 였λ₯˜ λ©”μ‹œμ§€

에 λ§Œλ“  2019λ…„ 12μ›” 07일  Β·  10μ½”λ©˜νŠΈ  Β·  좜처: jaredpalmer/razzle

Razzle (v3.0.0)을 μ„€μΉ˜ν–ˆμŠ΅λ‹ˆλ‹€. create-react-app은 μ„€μΉ˜ 쀑 였λ₯˜κ°€ λ°œμƒν•˜κ³  μ •μ˜λ˜μ§€ μ•Šμ€ λ©”μ‹œμ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.

λ…Έλ“œ 버전 : v10.16.0

my-razzle-app 생성 쀑 ...

성곡! "my-razzle-app"razzle μ•±μš© 파일 생성

npm λͺ¨λ“ˆ μ„€μΉ˜ :
λ°˜μ‘ν•˜λ‹€
λ°˜μ‘ 돔
λ°˜μ‘ λΌμš°ν„° 돔
야단법석
ν‘œν˜„ν•˜λ‹€

> 였λ₯˜!

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

λ‚˜λ„ λ˜‘κ°™μ€ κ±Έ κ°€μ§€κ³ μžˆμ–΄. 이것에 λŒ€ν•œ μ—…λ°μ΄νŠΈκ°€ μžˆμŠ΅λ‹ˆκΉŒ?

λͺ¨λ“  10 λŒ“κΈ€

제 κ²½μš°μ—λŠ”μ΄ 둜그λ₯Ό λ°›κ³  μžˆμŠ΅λ‹ˆλ‹€.

yarn run v1.19.1
$ razzle start
 WAIT  Compiling...


βœ” Client
  Compiled successfully in 3.37s

βœ” Server
  Compiled successfully in 341.05ms

β„Ή ο½’wdsο½£: Project is running at http://localhost:3001/
β„Ή ο½’wdsο½£: webpack output is served from undefined
β„Ή ο½’wdsο½£: Content not from webpack is served from /Users/ajayposhak/Projects/my-app
β„Ή ο½’wdsο½£: 404s will fallback to /index.html
Warning: Please use `require("react-router-dom").Route` instead of `require("react-router-dom/Route")`. Support for the latter will be removed in the next major release.
Warning: Please use `require("react-router-dom").Switch` instead of `require("react-router-dom/Switch")`. Support for the latter will be removed in the next major release.
βœ…  Server-side HMR Enabled!
πŸš€ started

ν•˜μ§€λ§Œ http://localhost:3001/ μ΄λ™ν•˜λ©΄ λ¬Έμ„œ 제λͺ©μ΄ Error 빈 νŽ˜μ΄μ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.

포트 3000μ—μ„œ 싀행쀑인 것이 μžˆμŠ΅λ‹ˆκΉŒ?

http://localhost:3000/ μ—΄λ©΄ μ˜¬λ°”λ₯Έ νŽ˜μ΄μ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 터미널 좜λ ₯μ—μ„œ http://localhost:3001/ 였λ₯˜κ°€μžˆλŠ” Cannot GET / λ₯Ό 열도둝 μš”μ²­ν•©λ‹ˆλ‹€.

λ‚˜λŠ” 같은 λ©”μ‹œμ§€λ₯Ό λ°›μ•˜λ‹€ :-)

λ‚˜λ„ λ˜‘κ°™μ€ κ±Έ κ°€μ§€κ³ μžˆμ–΄. 이것에 λŒ€ν•œ μ—…λ°μ΄νŠΈκ°€ μžˆμŠ΅λ‹ˆκΉŒ?

μ½˜μ†” 좜λ ₯μ—μ„œ ​​더 λͺ…ν™•ν•˜κ²Œν•΄μ•Όν•©λ‹ˆλ‹€. razzle / scripts / start.jsλ₯Ό μžμ„Ένžˆ μ‚΄νŽ΄λ³΄λ©΄μ΄ 문제의 제λͺ©μ€ 관련이 μ—†μŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” create-razzle-app을 μ‘°μ‚¬ν•˜κ³  있으며 create-razzle-app을 μ‹€ν–‰ν•  λ•Œμ΄ (μ •μ˜λ˜μ§€ μ•Šμ€) 였λ₯˜κ°€ λ°œμƒν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 잘λͺ»λœ μ—°κ²° 및 μ‹œκ°„ 초과둜 λ°œμƒν•  수 μžˆμŠ΅λ‹ˆκΉŒ? μ–΄λ–€ μ˜ˆκ°€μžˆλŠ” κ²½μš°μž…λ‹ˆλ‹€. μ–΄λ–€ OS? yarn λ˜λŠ” npm을 μ‚¬μš©ν•˜μ‹­λ‹ˆκΉŒ?

더 λ§Žμ€ 정보가 ν•„μš”ν•©λ‹ˆλ‹€. 있으면 λ‹€μ‹œ μ—½λ‹ˆ λ‹€. :)

μ•ˆλ…•ν•˜μ„Έμš”,
λ‚˜λŠ” 였늘 λ‹€μ‹œ μ‹œλ„ν•˜κ³  더 이상 PBκ°€ μ—†μŠ΅λ‹ˆλ‹€.
감사.
제둬

Le samedi 9 mai 2020 Γ  16:35:41 UTC+2, Øyvind Saltvik <[email protected]> a Γ©crit :

더 λ§Žμ€ 정보가 ν•„μš”ν•©λ‹ˆλ‹€. 있으면 λ‹€μ‹œ μ—½λ‹ˆ λ‹€. :)

β€”
λŒ“κΈ€μ„ λ‹¬μ•˜ κΈ° λ•Œλ¬Έμ— μˆ˜μ‹  ν•œ κ²ƒμž…λ‹ˆλ‹€.
이 이메일에 직접 λ‹΅μž₯ν•˜κ±°λ‚˜ GitHubμ—μ„œ ν™•μΈν•˜κ±°λ‚˜ ꡬ독을 μ·¨μ†Œν•˜μ„Έμš”.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰

κ΄€λ ¨ 문제

dizzyn picture dizzyn  Β·  3μ½”λ©˜νŠΈ

gabimor picture gabimor  Β·  3μ½”λ©˜νŠΈ

jcblw picture jcblw  Β·  4μ½”λ©˜νŠΈ

sebmor picture sebmor  Β·  4μ½”λ©˜νŠΈ

JacopKane picture JacopKane  Β·  3μ½”λ©˜νŠΈ