Razzle (v3.0.0)μ μ€μΉνμ΅λλ€. create-react-appμ μ€μΉ μ€ μ€λ₯κ° λ°μνκ³ μ μλμ§ μμ λ©μμ§κ° νμλ©λλ€.
λ Έλ λ²μ : v10.16.0
my-razzle-app μμ± μ€ ...
μ±κ³΅! "my-razzle-app"razzle μ±μ© νμΌ μμ±
npm λͺ¨λ μ€μΉ :
λ°μνλ€
λ°μ λ
λ°μ λΌμ°ν° λ
μΌλ¨λ²μ
νννλ€
> μ€λ₯!
μ κ²½μ°μλμ΄ λ‘κ·Έλ₯Ό λ°κ³ μμ΅λλ€.
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 /
λ₯Ό μ΄λλ‘ μμ²ν©λλ€.
λλ κ°μ λ©μμ§λ₯Ό λ°μλ€ :-)
λλ λκ°μ κ±Έ κ°μ§κ³ μμ΄. μ΄κ²μ λν μ λ°μ΄νΈκ° μμ΅λκΉ?
@AjayPoshak μ°Έμ‘° https://github.com/jaredpalmer/razzle/issues/1182#issuecomment -576262469
μ½μ μΆλ ₯μμ ββλ λͺ ννκ²ν΄μΌν©λλ€. 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μμ νμΈνκ±°λ ꡬλ
μ μ·¨μνμΈμ.
κ°μ₯ μ μ©ν λκΈ
λλ λκ°μ κ±Έ κ°μ§κ³ μμ΄. μ΄κ²μ λν μ λ°μ΄νΈκ° μμ΅λκΉ?