请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

404s will fallback to /index.html 遇见这个问题该如何解决老师?

正在回答

1回答

同学 请提供一下代码和截图 在哪一步代码的时候遇到的这个问题呢?

0 回复 有任何疑惑可以回复我~
  • 非常感谢!
    回复 有任何疑惑可以回复我~ 2020-01-07 20:25:41
  • npm run dev 之后
    ===========================================================================
    xiaok:react ccc123$ npm run dev
    
    > tmpc@0.1.0 dev /Users/ccc123/code/aImportant/react
    > concurrently "wait-on http://localhost:3000 && electron ." "cross-env BROWSER=none npm start"
    
    [1] 
    [1] > tmpc@0.1.0 start /Users/ccc123/code/aImportant/react
    [1] > react-scripts start
    [1] 
    [1] ℹ 「wds」: Project is running at http://192.168.50.187/
    [1] ℹ 「wds」: webpack output is served from /
    [1] ℹ 「wds」: Content not from webpack is served from /Users/ccc123/code/aImportant/react/public
    [1] ℹ 「wds」: 404s will fallback to /index.html
    [1] Starting the development server...
    [1] 
    [1] Compiled successfully!
    [1] 
    [1] You can now view tmpc in the browser.
    [1] 
    [1]   Local:            http://localhost:3000/
    [1]   On Your Network:  http://192.168.50.187:3000/
    [1] 
    [1] Note that the development build is not optimized.
    [1] To create a production build, use npm run build.
    [1] 
    [0] true
    [0] http://192.168.50.187:3000
    [0] wait-on http://localhost:3000 && electron . exited with code 0
    回复 有任何疑惑可以回复我~ 2020-01-07 21:01:23
  • 老师您看一下 这个问题?
    回复 有任何疑惑可以回复我~ 2020-01-07 21:02:02
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信