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

Open
#60 4 comments 0 reactions 0 assignees View on GitHub
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.
![image](https://user-images.githubusercontent.com/31309583/40896578-5cfb7472-67d3-11e8-951e-1389cea4c148.png)
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:
![image](https://user-images.githubusercontent.com/31309583/40896664-ea494426-67d3-11e8-99e2-e0ccff89de52.png)
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.