Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drwpow/webpack-v4-code-splitting-test
https://github.com/drwpow/webpack-v4-code-splitting-test
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/drwpow/webpack-v4-code-splitting-test
- Owner: drwpow
- Created: 2018-02-10T03:00:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T03:32:59.000Z (almost 7 years ago)
- Last Synced: 2024-10-15T00:46:32.959Z (2 months 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)
```