alibaba / alibaba/beidou

with-react-loadable 無法載入

Open
#249 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
260
PR merge metrics
No merged PRs in 30d

Description

嘗試利用 [with-react-loadable](https://github.com/alibaba/beidou/tree/master/examples/with-react-loadable) 的官方範例來實現 lazy loading

但在做完 `yarn build` 並且 `yarn start`時
點選 `http://127.0.0.1:6001/dynamic` 網址會一直卡在loading畫面

螢幕快照 2020-09-18 上午11 41 15

然後這是執行 `yarn build`之後的資料夾內容
螢幕快照 2020-09-18 上午11 48 23

貌似出錯原因是在dynamic這路徑底下找不到 `2.js`這個檔案
請問應該要如何做?

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem from examples/with-react-loadable by running yarn build and yarn start, then opening /dynamic at 127.0.0.1:6001. Inspect the build output and the dynamic route's loading request; done means the example loads instead of remaining on the loading screen and the expected chunk is available at the requested path.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.