You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2019. It is now read-only.
When I use awesome-typescript-loader 2.0.0-rc.6 with typescript 1.9.0-dev.20160620-1.0 on Windows, both with mingw and command prompt. No errors on MacOS X and linux environment.
C:\work\plunk\node_modules\awesome-typescript-loader\src\host.ts:50
return this.state.ts.ScriptSnapshot.fromString(file.text);
^
TypeError: Cannot read property 'text' of undefined
at Host.getScriptSnapshot (C:\work\plunk\node_modules\awesome-typescript-loader\src\host.ts:50:60)
at HostCache.createEntry (C:\work\plunk\node_modules\typescript\lib\typescript.js:52034:44)
at HostCache.getOrCreateEntryByPath (C:\work\plunk\node_modules\typescript\lib\typescript.js:52059:24)
at getOrCreateSourceFileByPath (C:\work\plunk\node_modules\typescript\lib\typescript.js:53111:53)
at Object.getOrCreateSourceFile [as getSourceFile] (C:\work\plunk\node_modules\typescript\lib\typescript.js:53104:24)
at findSourceFile (C:\work\plunk\node_modules\typescript\lib\typescript.js:43908:29)
at processSourceFile (C:\work\plunk\node_modules\typescript\lib\typescript.js:43856:27)
at C:\work\plunk\node_modules\typescript\lib\typescript.js:43949:17
at Object.forEach (C:\work\plunk\node_modules\typescript\lib\typescript.js:967:30)
at processReferencedFiles (C:\work\plunk\node_modules\typescript\lib\typescript.js:43947:16)
at findSourceFile (C:\work\plunk\node_modules\typescript\lib\typescript.js:43932:21)
at processSourceFile (C:\work\plunk\node_modules\typescript\lib\typescript.js:43856:27)
at processRootFile (C:\work\plunk\node_modules\typescript\lib\typescript.js:43760:13)
at C:\work\plunk\node_modules\typescript\lib\typescript.js:43228:60
at Object.forEach (C:\work\plunk\node_modules\typescript\lib\typescript.js:967:30)
at Object.createProgram (C:\work\plunk\node_modules\typescript\lib\typescript.js:43228:16)
at synchronizeHostData (C:\work\plunk\node_modules\typescript\lib\typescript.js:53082:33)
at Object.getProgram (C:\work\plunk\node_modules\typescript\lib\typescript.js:53182:13)
at State.updateProgram (C:\work\plunk\node_modules\awesome-typescript-loader\src\host.ts:142:38)
at Compiler.<anonymous> (C:\work\plunk\node_modules\awesome-typescript-loader\src\instance.ts:380:23)
at next (C:\work\plunk\node_modules\webpack\node_modules\tapable\lib\Tapable.js:83:14)
at Compiler.<anonymous> (C:\work\plunk\node_modules\webpack\lib\CachePlugin.js:61:4)
at Compiler.applyPluginsAsync (C:\work\plunk\node_modules\webpack\node_modules\tapable\lib\Tapable.js:85:13)
at Compiler.<anonymous> (C:\work\plunk\node_modules\webpack\lib\Compiler.js:434:9)
at Compilation.<anonymous> (C:\work\plunk\node_modules\webpack\lib\Compilation.js:577:13)
at Compilation.applyPluginsAsync (C:\work\plunk\node_modules\webpack\node_modules\tapable\lib\Tapable.js:73:70)
at Compilation.<anonymous> (C:\work\plunk\node_modules\webpack\lib\Compilation.js:572:10)
at Compilation.applyPluginsAsync (C:\work\plunk\node_modules\webpack\node_modules\tapable\lib\Tapable.js:73:70)
at Compilation.<anonymous> (C:\work\plunk\node_modules\webpack\lib\Compilation.js:567:9)
at Compilation.applyPluginsAsync (C:\work\plunk\node_modules\webpack\node_modules\tapable\lib\Tapable.js:73:70)
t246246
changed the title
TypeError: Cannot read property 'text' of undefined with 2.0.0-rc.6 and typescript 1.9.0-dev.20160620-1.0 on Windows,
"TypeError: Cannot read property 'text' of undefined" with 2.0.0-rc.6 and typescript 1.9.0-dev on Windows.
Jun 21, 2016
C:\work\plunk\node_modules\awesome-typescript-loader\src\host.ts:53
throw new Error(`Requested file is unknown: ${ fileName_ }`);
^
Error: Requested file is unknown: C:\work\plunk\node_modules\typescript\lib\lib.dom.generated.d.ts
at Host.getScriptSnapshot (C:\work\plunk\node_modules\awesome-typescript-loader\src\host.ts:53:19)
at HostCache.createEntry (C:\work\plunk\node_modules\typescript\lib\typescript.js:52034:44)
at HostCache.getOrCreateEntryByPath (C:\work\plunk\node_modules\typescript\lib\typescript.js:52059:24)
[rest stacktrace is same]
Uh oh!
There was an error while loading. Please reload this page.
I separate this issue from #168
When I use awesome-typescript-loader 2.0.0-rc.6 with typescript 1.9.0-dev.20160620-1.0 on Windows, both with mingw and command prompt. No errors on MacOS X and linux environment.
Other setting is same as #168.
The text was updated successfully, but these errors were encountered: