Skip to content
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

with-react-loadable 無法載入 #249

Open
JackyTung opened this issue Sep 18, 2020 · 1 comment
Open

with-react-loadable 無法載入 #249

JackyTung opened this issue Sep 18, 2020 · 1 comment

Comments

@JackyTung
Copy link

JackyTung commented Sep 18, 2020

嘗試利用 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這個檔案
請問應該要如何做?

@njugray
Copy link
Contributor

njugray commented Sep 24, 2020

应该版本更新后导致的不兼容问题,建议看下官方文档react-loadable#also-see排查,或者使用 loadable-components 替代。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants