-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Webpack tries to import a chunk that does not exist #16040
Copy link
Copy link
Closed
Labels
Description
Bug report
What is the current behavior?
Webpack is trying to import a chunk that does not exsit.
If the current behavior is a bug, please provide the steps to reproduce.
I have prepare a repo for reproducing it:
- Clone https://github.com/hronro/webpack-chunk-issue
- Run
pnpm i && pnpm build - Check
dist/main.c1ecce6e.js. In the bottom of the file, it contains something like this:
import * as __webpack_chunk_0__ from "./style.e9792867.js";However, style.e9792867.js does not exsit.
What is the expected behavior?
Webpack should not import that unexist file.
Other relevant information:
webpack version: 5.73.0
Node.js version: 18.5.0
Operating System: macOS
Additional tools: PNPM
Reactions are currently unavailable