webpack is watching the files…
ℹ 「atl」: Using typescript@3.6.2 from typescript
ℹ 「atl」: Using tsconfig.json from mwe/tsconfig.json (in a forked process)
✖ 「atl」: Child process failed to process the request: TypeError: Cannot read property 'moduleAugmentations' of undefined
at containsGlobalScopeAugmentation (mwe/node_modules/typescript/lib/typescript.js:93996:39)
at isFileAffectingGlobalScope (mwe/node_modules/typescript/lib/typescript.js:94002:20)
at Object.getAllDependencies (mwe/node_modules/typescript/lib/typescript.js:93932:41)
at Object.result.getAllDependencies (mwe/node_modules/typescript/lib/typescript.js:94658:84)
at processEmit (mwe/node_modules/awesome-typescript-loader/dist/checker/runtime.js:377:28)
at process.<anonymous> (mwe/node_modules/awesome-typescript-loader/dist/checker/runtime.js:497:21)
at process.emit (events.js:200:13)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
ℹ 「atl」: Checking started in a separate process...
Hash: c7622806a916fe92d7c1
Version: webpack 4.39.3
Time: 2054ms
Built at: 09/01/2019 12:50:57 AM
Asset Size Chunks Chunk Names
output.js 5.07 KiB main [emitted] main
Entrypoint main = output.js
[./index.ts] 106 bytes {main} [built]
+ 1 hidden module
ERROR in ./node_modules/events/events.js
Module build failed: Error: Final loader (./node_modules/awesome-typescript-loader/dist/entry.js) didn't return a Buffer or String
at mwe/node_modules/webpack/lib/NormalModule.js:330:18
at mwe/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (mwe/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (mwe/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at mwe/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (mwe/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
@ ./index.ts 3:19-36
ℹ 「atl」: Time: 174ms
Minimal working example
Steps to reproduce
Copy above files into a directory. Run
This produces the output: