faceyspacey / faceyspacey/webpack-flush-chunks
Chunks not being created with TypeScript : [FLUSH CHUNKS]: Unable to find default in Webpack chunks. Please check usage of Babel plugin
- Dominant language
- JavaScript
- Stars
- 354
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
I get this error in a Typescript project of mine. So I cloned the **universal-demo** project and changed things to typescript( except server/index.js ). The project builds successfully, and then I get the same error.

What am I missing here? The only changes I have made to the webpack configs is adding at-loader to the rules and including ts and tsx to resolve extensions.
Current project structure:

tsconfig.json
{
"compileOnSave": true,
"exclude": ["node_modules"],
"compilerOptions": {
"noStrictGenericChecks": true,
"allowJs": true,
"declaration": false,
"noResolve": false,
"jsx": "react",
"module": "commonjs",
"target": "es2015",
"experimentalDecorators": true,
"sourceMap": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"outDir": "./dist/",
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
//"types": [ "node" ],
"typeRoots": []
}
}
sample : [https://github.com/aneogiarcadix/universal-demo-ts](https://github.com/aneogiarcadix/universal-demo-ts)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.