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 buildWithTsLoaderAlternatively, to confirm this is a ts-loader issue compile app with
awesome-typescript-loader.
yarn buildWithAtLoaderOr, compile app without any bundling (just TypeScript).
yarn buildWithTsc