ryanewtaylor / repro-excessive-stack-depth-error

Reproduce an excessive stack depth error when using TypeScript, Immutable, Webpack, ts-loader, and yarn link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Excessive Stack Depth Error Reproduction

This repo reproduces an excessive stack depth error when using TypeScript, Immutable, Webpack, ts-loader, and yarn link.

Getting Started

Environment (Prerequisites)

  • Windows 10
  • Node v8.5.0
  • Yarn v1.6.0

To Reproduce

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

About

Reproduce an excessive stack depth error when using TypeScript, Immutable, Webpack, ts-loader, and yarn link

License:MIT License


Languages

Language:JavaScript 59.4%Language:TypeScript 40.6%