This repo reproduces an excessive stack depth error when using TypeScript,
Immutable, Webpack, ts-loader, and yarn link
.
- Windows 10
- Node v8.5.0
- Yarn v1.6.0
Open a command window at this repo's location and run
cd lib
yarn install
yarn build
yarn link
cd ..\app
yarn install
yarn link "lib"
yarn buildWithTsLoader
Alternatively, to confirm this is a ts-loader issue compile app
with
awesome-typescript-loader.
yarn buildWithAtLoader
Or, compile app
without any bundling (just TypeScript).
yarn buildWithTsc