https://github.com/drwpow/webpack-v4-code-splitting-test
https://github.com/drwpow/webpack-v4-code-splitting-test
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/drwpow/webpack-v4-code-splitting-test
- Owner: drwpow
- Created: 2018-02-10T03:00:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T03:32:59.000Z (over 8 years ago)
- Last Synced: 2025-02-10T04:17:50.676Z (over 1 year ago)
- Language: JavaScript
- Size: 436 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weback 4 Beta Code-splitting Test
## Instructions:
1. `yarn`, `yarn start`, and load up `localhost:8080`
1. Click on Page 1, 2, or 3
1. React router will navigate to `/page/x`
1. From that page, webpack will try and load chunk at `/page/x.js` rather than `/x.js`
### Error
```
main.js:109 Uncaught (in promise) Error: Loading chunk 1 failed.
(error: http://localhost:8080/page/1.js)
at HTMLScriptElement.onScriptComplete (main.js:109)
```