electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.41k stars 506 forks source link

Electron-Forge, Angular4, and Electron-Compile - `'anonymous' is not a known element` #301

Closed PythonDevOp closed 7 years ago

PythonDevOp commented 7 years ago

Please describe your issue:

Similar to https://github.com/electron-userland/electron-forge/issues/272.

I basically took the angular 2 template, and 'upgraded' to Angular 4 by changing the dependencies in the package.json file. I added a new component, and tried to link an html file using angular 4 templateUrl, which threw the error with the electron-compiler. However, if I change to template and inline it, it works fine. the issue also exists with the styleUrl. I don't believe this is an Angular4 issue, but something related to how electron-forge is working with electron-compiler to serve up the app.

I did a little bit of troubleshooting, and found this issue might be related to electron-compile. Below is the debug log from electron-compile using :DEBUG=electron-compile:* npm start

The relevant part, I think, is this:

Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/login.component.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compiler-host Compiling D:/login.component.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Failed to compile D:/login.component.html: ENOENT: no such file or directory, lstat 'D:\login.component.html'
Error: ENOENT: no such file or directory, lstat 'D:\login.component.html'
    at fs.lstatSync (fs.js:961:11)
    at Object.fs.lstatSync (ELECTRON_ASAR.js:244:16)
    at Object.realpathSync (fs.js:1641:21)
    at Object.fs.realpathSync (ELECTRON_ASAR.js:321:29)
    at cachedRealpath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\sanitize-paths.js:25:22)
    at sanitizeFilePath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\sanitize-paths.js:52:16)
    at FileChangedCache.getCacheEntryForPath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:201:48)
    at D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:127:41
    at Generator.next (<anonymous>)
    at step (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:27:191)
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/index.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compiler-host Compiling D:/LearnProgramming/ngElec2/src/index.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compile-cache Fetching D:/LearnProgramming/ngElec2/src/index.html from cache

Below is the full output


> ngelec2@1.0.0 start D:\LearnProgramming\ngElec2
> electron-forge start

Tue, 22 Aug 2017 02:22:59 GMT electron-compile:config-parser Found a .compilerc at D:\LearnProgramming\ngElec2\.compilerc, using it
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:inline-html Setting up inline HTML compilers: []
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:config-parser Using default cache directory: C:\Users\EndUser\AppData\Local\Temp\compileCache_f4fab8ef69782e8252dd238efa345297
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:config-parser Creating CompilerHost: {"appRoot":"D:\\LearnProgramming\\ngElec2","options":{"application/javascript":{"presets":[["env",{"targets":{"electron":1.7}}],"react"],"plugins":["transform-async-to-generator"],"sourceMaps":"inline"}},"rootCacheDir":null,"sourceMapPath":null}, rootCacheDir = C:\Users\EndUser\AppData\Local\Temp\compileCache_f4fab8ef69782e8252dd238efa345297, sourceMapPath = null
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2' => 'D:\LearnProgramming\ngElec2'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:config-parser Setting options for application/javascript: {"presets":[["env",{"targets":{"electron":1.7}}],"react"],"plugins":["transform-async-to-generator"],"sourceMaps":"inline"}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:config-parser Created compiler host with options: {"appRoot":"D:\\LearnProgramming\\ngElec2","options":{"application/javascript":{"presets":[["env",{"targets":{"electron":1.7}}],"react"],"plugins":["transform-async-to-generator"],"sourceMaps":"inline"}},"rootCacheDir":null,"sourceMapPath":null}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\src\index.ts
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\src\index.ts' => 'D:\LearnProgramming\ngElec2\src\index.ts'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /src/index.ts: {"ctime":1503198227276,"size":1925,"info":{"hash":"7b4b1ce004c91a1f2180925cca33a5195bf67f9f","isMinified":false,"isInNodeModules":false,"hasSourceMap":false,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compile-cache Fetching D:\LearnProgramming\ngElec2\src\index.ts from cache
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compile-cache Path for TypeScriptCompiler: C:\Users\EndUser\AppData\Local\Temp\compileCache_f4fab8ef69782e8252dd238efa345297\56d0cd2c227b8e6c400e345b1e51c2b40d39e9ee
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compile-cache Set up with parameters: {"name":"TypeScriptCompiler","version":"2.5.1","options":{"inlineSourceMap":true,"inlineSources":true}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\live-reload.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\live-reload.js' => 'D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\live-reload.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/electron-compile/lib/live-reload.js: {"ctime":1503198722531,"size":10293,"info":{"hash":"da7e3c9818b2f283a8a36f3e8bde6415d8f79c8a","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\pathwatcher-rx.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\pathwatcher-rx.js' => 'D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\pathwatcher-rx.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/electron-compile/lib/pathwatcher-rx.js: {"ctime":1503198722531,"size":4152,"info":{"hash":"2f69fa86b2b2e5ddb247f029171fda9f85bda8a2","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\publish.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\publish.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\publish.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/publish.js: {"ctime":1503198747610,"size":211,"info":{"hash":"2be7b610760f6fbd6b6e186aa0610af51dd3e873","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\publish.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\publish.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\publish.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/publish.js: {"ctime":1503198728707,"size":1137,"info":{"hash":"8c199485429eb047022dd3278353d6b73a2341c6","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\multicast.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\multicast.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\multicast.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/multicast.js: {"ctime":1503198728602,"size":2475,"info":{"hash":"9e9f7d79fed731bcdef6479a58e017bf7df00f59","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ConnectableObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ConnectableObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ConnectableObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/ConnectableObservable.js: {"ctime":1503198726619,"size":6649,"info":{"hash":"995745ac2f38e43279033dfdca75f2e26a1891d2","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\custom-operators.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\custom-operators.js' => 'D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\custom-operators.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/electron-compile/lib/custom-operators.js: {"ctime":1503198722528,"size":4966,"info":{"hash":"5ec61f2c70c756080dc46a8377501cad4b785806","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\async.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\async.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\async.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/scheduler/async.js: {"ctime":1503198729458,"size":1482,"info":{"hash":"7577b57afe208c428e8870ada8ae6c996d269f53","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\AsyncAction.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\AsyncAction.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\AsyncAction.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/scheduler/AsyncAction.js: {"ctime":1503198729460,"size":5709,"info":{"hash":"a0ca3426c186e14b8b0effbde202c3a40be4b5c6","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\Action.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\Action.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\Action.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/scheduler/Action.js: {"ctime":1503198729103,"size":1638,"info":{"hash":"9bb09f69325d2b9a722f3da5de1e900f654e5d33","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\AsyncScheduler.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\AsyncScheduler.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\scheduler\AsyncScheduler.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/scheduler/AsyncScheduler.js: {"ctime":1503198729468,"size":1713,"info":{"hash":"0c312171191857a2ee74c4f6c15141c360f2e948","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\Scheduler.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\Scheduler.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\Scheduler.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/Scheduler.js: {"ctime":1503198706507,"size":1885,"info":{"hash":"9db064f131d09b91e7ca27d6c4d960c5de6511c7","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\range.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\range.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\range.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/observable/range.js: {"ctime":1503198747317,"size":191,"info":{"hash":"0512c5052aa6ff274d777f1ad5571616caf9a51c","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\range.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\range.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\range.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/range.js: {"ctime":1503198727446,"size":159,"info":{"hash":"50a432d0c3ef6ef92d33b34df7d4ebc48aa7f738","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\RangeObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\RangeObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\RangeObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/RangeObservable.js: {"ctime":1503198727447,"size":3471,"info":{"hash":"41ea09445e4aa64f1e8af5a1edb9264bd8f117b1","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\timer.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\timer.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\timer.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/observable/timer.js: {"ctime":1503198747319,"size":191,"info":{"hash":"c106876ffbee4f47881c3e4334cc9de879ec68f3","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\timer.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\timer.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\timer.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/timer.js: {"ctime":1503198727452,"size":159,"info":{"hash":"7d8596a051ef1527d113b2712da6d17403581216","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\TimerObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\TimerObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\TimerObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/TimerObservable.js: {"ctime":1503198727453,"size":4462,"info":{"hash":"64b2dcc798b386d5f97c3f2f3f4ce55a019341f9","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isNumeric.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isNumeric.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isNumeric.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/util/isNumeric.js: {"ctime":1503198729632,"size":501,"info":{"hash":"e5fab7ebc2bf82daf5f8cb67c384454424dd0153","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isScheduler.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isScheduler.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isScheduler.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/util/isScheduler.js: {"ctime":1503198729642,"size":178,"info":{"hash":"182f1df6fcefd0de7614777cd434d52aaa9c1303","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isDate.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isDate.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isDate.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/util/isDate.js: {"ctime":1503198729626,"size":152,"info":{"hash":"769d85b55b488f2544844b42393921ad297f1d2b","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\mergeMap.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\mergeMap.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\mergeMap.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/mergeMap.js: {"ctime":1503198747590,"size":282,"info":{"hash":"4346d5eb9540aac467182253c81d5c4b29b9455a","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\mergeMap.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\mergeMap.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\mergeMap.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/mergeMap.js: {"ctime":1503198728595,"size":6569,"info":{"hash":"05634d3c33b4c0172914927b4b55d272ce006930","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\util\subscribeToResult.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\subscribeToResult.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\subscribeToResult.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/util/subscribeToResult.js: {"ctime":1503198729691,"size":2980,"info":{"hash":"44d19297dfcf9040b3a77e91aa707488c63d88da","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isArrayLike.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isArrayLike.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isArrayLike.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/util/isArrayLike.js: {"ctime":1503198729625,"size":137,"info":{"hash":"e54e51f0390182f0473a199363a6e4dc084859dc","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isPromise.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isPromise.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\isPromise.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/util/isPromise.js: {"ctime":1503198729634,"size":207,"info":{"hash":"07e5fa140f85c5f86fc310a2e3f0a84b54e8e798","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\symbol\iterator.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\symbol\iterator.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\symbol\iterator.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/symbol/iterator.js: {"ctime":1503198729565,"size":1339,"info":{"hash":"e0c4def7b5b68ceb0cef5172c74ce472c2231658","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\InnerSubscriber.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\InnerSubscriber.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\InnerSubscriber.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/InnerSubscriber.js: {"ctime":1503198706363,"size":1289,"info":{"hash":"901cebb0d253e704db95b286f092c14c1328bba2","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\OuterSubscriber.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\OuterSubscriber.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\OuterSubscriber.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/OuterSubscriber.js: {"ctime":1503198706489,"size":1107,"info":{"hash":"fc8aac47fed6b26451aaa766f5705d009bb2c645","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\retryWhen.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\retryWhen.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\retryWhen.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/retryWhen.js: {"ctime":1503198747634,"size":223,"info":{"hash":"ea0f3afaf55bd7b82ff3643d0f6abad0ffdeeba6","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\retryWhen.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\retryWhen.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\retryWhen.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/retryWhen.js: {"ctime":1503198728722,"size":4218,"info":{"hash":"b88c3b6c956b1189da93aa6391d2856f5409d3a6","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\switch.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\switch.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\switch.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/switch.js: {"ctime":1503198747656,"size":268,"info":{"hash":"bb727c89669c182671e7ecdf0d9241c6a4c61301","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\switch.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\switch.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\switch.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/switch.js: {"ctime":1503198729039,"size":4249,"info":{"hash":"4d0b91f50120354c5f2708ae893b88f9ec4eaac5","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\zip.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\zip.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\zip.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/zip.js: {"ctime":1503198747691,"size":192,"info":{"hash":"0a454a982d2f43f13453e457844cb49f2e95f98c","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\zip.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\zip.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\zip.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/zip.js: {"ctime":1503198729100,"size":9443,"info":{"hash":"6308241546f24823be0a9c134446307e89823aa1","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ArrayObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ArrayObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ArrayObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/ArrayObservable.js: {"ctime":1503198726564,"size":4576,"info":{"hash":"5d023fad465ebc6d4962593081e0eb15d31e1434","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ScalarObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ScalarObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ScalarObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/ScalarObservable.js: {"ctime":1503198727448,"size":1879,"info":{"hash":"9708c7299cbb6a634beeea10e2f1fbcfeb6ceb51","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\EmptyObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\EmptyObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\EmptyObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/EmptyObservable.js: {"ctime":1503198726648,"size":2972,"info":{"hash":"f493a019e69ae9f770bdaa844964252e5f4ec9fd","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\defer.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\defer.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\defer.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/observable/defer.js: {"ctime":1503198747203,"size":191,"info":{"hash":"8cd726e8d3d34cb1768658eb1b2ab811bc9e9d27","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\defer.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\defer.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\defer.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/defer.js: {"ctime":1503198726622,"size":159,"info":{"hash":"69830c4005ace02c9662e70c36b4b5d6671d6778","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\DeferObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\DeferObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\DeferObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/DeferObservable.js: {"ctime":1503198726626,"size":3989,"info":{"hash":"b2facbd2ee3f77e06a02fbed69bc3ae6f33793f0","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\empty.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\empty.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\empty.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/observable/empty.js: {"ctime":1503198747203,"size":191,"info":{"hash":"62429e813392a17cca501c9245481a87d4d3f017","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\empty.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\empty.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\empty.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/empty.js: {"ctime":1503198726627,"size":159,"info":{"hash":"bae3effefcaae17fd14c11516361bc382f0ec398","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\fromPromise.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\fromPromise.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\observable\fromPromise.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/observable/fromPromise.js: {"ctime":1503198747231,"size":227,"info":{"hash":"f79c6ad39f09f3cbab73f305de0caff58d620652","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\fromPromise.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\fromPromise.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\fromPromise.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/fromPromise.js: {"ctime":1503198726842,"size":179,"info":{"hash":"7693fe76c7341eefb9525a87907c82a227b8859e","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\PromiseObservable.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\PromiseObservable.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\PromiseObservable.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/observable/PromiseObservable.js: {"ctime":1503198727411,"size":4676,"info":{"hash":"1955360497fed87059fe0221ef0dd4cc7f0ab258","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\catch.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\catch.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\catch.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/catch.js: {"ctime":1503198747414,"size":259,"info":{"hash":"609cf695d3c8711927072ac28b05623b114723dc","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\catch.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\catch.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\catch.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/catch.js: {"ctime":1503198727523,"size":3979,"info":{"hash":"6f604892f02002fa254dc0628332c14813dc8611","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\filter.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\filter.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\filter.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/filter.js: {"ctime":1503198747552,"size":205,"info":{"hash":"c04a3d09dedaf5127b1b828dbdb2feffff9c1690","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\filter.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\filter.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\filter.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/filter.js: {"ctime":1503198728031,"size":3546,"info":{"hash":"407ef80695977116df2f7a575573c92e10154533","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\switchMap.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\switchMap.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\switchMap.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/switchMap.js: {"ctime":1503198747656,"size":223,"info":{"hash":"da9389dbfa3bd283026db01a29ab64906daf027e","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\switchMap.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\switchMap.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\switchMap.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/switchMap.js: {"ctime":1503198729041,"size":5877,"info":{"hash":"3b42bbbfb495036f2565176e230f2631ba59d7f4","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\timeout.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\timeout.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\add\operator\timeout.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/add/operator/timeout.js: {"ctime":1503198747679,"size":211,"info":{"hash":"025271e1b93ec022554541c6fb57b3636cf2b757","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\timeout.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\timeout.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\timeout.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/operator/timeout.js: {"ctime":1503198729066,"size":6552,"info":{"hash":"ef755ab959cc69e46983d9783a329024d16d6844","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:\LearnProgramming\ngElec2\node_modules\rxjs\util\TimeoutError.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\TimeoutError.js' => 'D:\LearnProgramming\ngElec2\node_modules\rxjs\util\TimeoutError.js'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /node_modules/rxjs/util/TimeoutError.js: {"ctime":1503198729693,"size":776,"info":{"hash":"d6139ab2228a22b15aa95814f50bdb8ea2074017","isMinified":false,"isInNodeModules":true,"hasSourceMap":true,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/index.html
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:/LearnProgramming/ngElec2/src/index.html
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:/LearnProgramming/ngElec2/src/index.html' => 'D:\LearnProgramming\ngElec2\src\index.html'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /src/index.html: {"ctime":1503368282145,"size":538,"info":{"hash":"d9f85e3329a29bdc96a60d901a314c2a65338b6c","isMinified":false,"isInNodeModules":false,"hasSourceMap":false,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compile-cache Fetching D:/LearnProgramming/ngElec2/src/index.html from cache
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\src\index.html' => 'D:\LearnProgramming\ngElec2\src\index.html'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compile-cache Path for InlineHtmlCompiler: C:\Users\EndUser\AppData\Local\Temp\compileCache_f4fab8ef69782e8252dd238efa345297\ebbeac2ce84da83b22b0c3c7f56b2cf07dc8d634
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compile-cache Set up with parameters: {"name":"InlineHtmlCompiler","version":"5.9.0,","options":{}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/__magic__file__to__help__electron__compile.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/node_modules/zone.js/dist/zone.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/node_modules/reflect-metadata/Reflect.js
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/main.ts
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compiler-host Compiling D:/LearnProgramming/ngElec2/src/main.ts
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:/LearnProgramming/ngElec2/src/main.ts' => 'D:\LearnProgramming\ngElec2\src\main.ts'
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:file-change-cache Cache entry for /src/main.ts: {"ctime":1503200843489,"size":347,"info":{"hash":"1c05b021933721c20c3ada581d0ffb51140bc787","isMinified":false,"isInNodeModules":false,"hasSourceMap":false,"isFileBinary":false}}
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:compile-cache Fetching D:/LearnProgramming/ngElec2/src/main.ts from cache
Tue, 22 Aug 2017 02:22:59 GMT electron-compile:sanitize-paths Cache miss for cachedRealpath: 'D:\LearnProgramming\ngElec2\src\main.ts' => 'D:\LearnProgramming\ngElec2\src\main.ts'
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/app.component.css
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compiler-host Compiling D:/LearnProgramming/ngElec2/src/app.component.css
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Failed to compile D:/LearnProgramming/ngElec2/src/app.component.css: watch D:/LearnProgramming/ngElec2/src/app.component.css ENOENT
Error: watch D:/LearnProgramming/ngElec2/src/app.component.css ENOENT
    at exports._errnoException (util.js:1050:11)
    at FSWatcher.start (fs.js:1410:19)
    at Object.fs.watch (fs.js:1436:11)
    at Observable._Observable.Observable.create.subj [as _subscribe] (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\pathwatcher-rx.js:29:34)
    at Observable._trySubscribe (D:\LearnProgramming\ngElec2\node_modules\rxjs\Observable.js:171:25)
    at Observable.subscribe (D:\LearnProgramming\ngElec2\node_modules\rxjs\Observable.js:159:65)
    at Observable.ConnectableObservable.connect (D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ConnectableObservable.js:39:18)
    at RefCountOperator.call (D:\LearnProgramming\ngElec2\node_modules\rxjs\observable\ConnectableObservable.js:108:49)
    at Observable.subscribe (D:\LearnProgramming\ngElec2\node_modules\rxjs\Observable.js:156:22)
    at MapOperator.call (D:\LearnProgramming\ngElec2\node_modules\rxjs\operator\map.js:54:23)
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/login.component.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compiler-host Compiling D:/login.component.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Failed to compile D:/login.component.html: ENOENT: no such file or directory, lstat 'D:\login.component.html'
Error: ENOENT: no such file or directory, lstat 'D:\login.component.html'
    at fs.lstatSync (fs.js:961:11)
    at Object.fs.lstatSync (ELECTRON_ASAR.js:244:16)
    at Object.realpathSync (fs.js:1641:21)
    at Object.fs.realpathSync (ELECTRON_ASAR.js:321:29)
    at cachedRealpath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\sanitize-paths.js:25:22)
    at sanitizeFilePath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\sanitize-paths.js:52:16)
    at FileChangedCache.getCacheEntryForPath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:201:48)
    at D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:127:41
    at Generator.next (<anonymous>)
    at step (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:27:191)
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/index.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compiler-host Compiling D:/LearnProgramming/ngElec2/src/index.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compile-cache Fetching D:/LearnProgramming/ngElec2/src/index.html from cache
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/login.component.css
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compiler-host Compiling D:/login.component.css
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Failed to compile D:/login.component.css: ENOENT: no such file or directory, lstat 'D:\login.component.css'
Error: ENOENT: no such file or directory, lstat 'D:\login.component.css'
    at fs.lstatSync (fs.js:961:11)
    at Object.fs.lstatSync (ELECTRON_ASAR.js:244:16)
    at Object.realpathSync (fs.js:1641:21)
    at Object.fs.realpathSync (ELECTRON_ASAR.js:321:29)
    at cachedRealpath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\sanitize-paths.js:25:22)
    at sanitizeFilePath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\sanitize-paths.js:52:16)
    at FileChangedCache.getCacheEntryForPath (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:201:48)
    at D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:127:41
    at Generator.next (<anonymous>)
    at step (D:\LearnProgramming\ngElec2\node_modules\electron-compile\lib\file-change-cache.js:27:191)
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/Observable.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/toSubscriber.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/Subscriber.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/isFunction.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/Subscription.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/isObject.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/tryCatch.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/UnsubscriptionError.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/Observer.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/observable.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/Subject.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/ObjectUnsubscribedError.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/SubjectSubscription.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/ErrorObservable.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/map.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/sorcery.cjs.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/sander.cjs.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/es6-promise.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/node_modules/reflect-metadata/Reflect.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/@angular/core/bundles/core.umd.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/operator/merge.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/observable/ArrayObservable.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/observable/ScalarObservable.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/observable/EmptyObservable.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/util/isScheduler.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/operator/mergeAll.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/OuterSubscriber.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/util/subscribeToResult.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/util/isArrayLike.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/util/isPromise.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/symbol/iterator.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/InnerSubscriber.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/operator/share.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/operator/multicast.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/rxjs/observable/ConnectableObservable.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/@angular/compiler/bundles/compiler.umd.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/@angular/common/bundles/common.umd.js.map
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/LearnProgramming/ngElec2/src/node_modules/@angular/platform-browser/bundles/platform-browser.umd.js.map
Terminate batch job (Y/N)? 

What command line arguments are you passing?

electron-forge init ngElect2 --template=angular2

What does your package.json look like?

 "dependencies": {
    "@angular/animations": "^4.2.4",
    "@angular/common": "^4.2.4",
    "@angular/compiler": "^4.2.4",
    "@angular/core": "^4.2.4",
    "@angular/forms": "^4.2.4",
    "@angular/http": "^4.2.4",
    "@angular/platform-browser": "^4.2.4",
    "@angular/platform-browser-dynamic": "^4.2.4",
    "@angular/router": "^4.2.4",
    "@types/electron": "1.4.30",
    "core-js": "^2.4.1",
    "electron-compile": "^6.4.1",
    "electron-devtools-installer": "2.0.1",
    "reflect-metadata": "0.1.9",
    "rxjs": "^5.4.2",
    "tslib": "1.4.0",
    "zone.js": "^0.8.14"
  },

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-forge init is a good starting point, if that is not the source of your problem.

I basically took the angular 2 template, and 'upgraded' to Angular 4 by changing the dependencies in the package.json file. I added a new component, and tried to link an html file using angular 4 templateUrl, which threw the error with the electron-compiler. However, if I change to template and inline it, it works fine. the issue also exists with the styleUrl. I don't believe this is an Angular4 issue, but something related to how electron-forge is working with electron-compiler to serve up the app.

These are the basic bare bones to my project. Not much done to change what was already present in the angular 2 template, except for adding a new component.

index.html main.ts app.component.ts app.module.ts .compilerc

Login Component:

import{Component} from '@angular/core'

@Component({
    moduleId: module.id,
    selector: 'login-form',
    templateUrl: './login.component.html',
    styleUrls: ['login.component.css']
})

export class LoginForm{
    name = 'app';
}

Folder Structure: folder

For what its worth, it looks like a path issue with electron-compile, but I am not sure.

malept commented 7 years ago

How is this different from #272?

PythonDevOp commented 7 years ago

Well, for one, he has logic via *ngIf inside his template which would show or hide the component based on certain conditions. Also, the app setup might be different, as I am not sure how he got his components to show <app-main-toolbar></app-main-toolbar>, etc, because if they are inline it might work, but if they are referenced via templateUrl it might not

malept commented 7 years ago

Is this as minimal of a testcase as you can make?

ebordon commented 7 years ago

You can see in the first lines of the error

Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Intercepting url file:///D:/login.component.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:compiler-host Compiling D:/login.component.html
Tue, 22 Aug 2017 02:23:01 GMT electron-compile:protocol-hook Failed to compile D:/login.component.html: ENOENT: no such file or directory, lstat 'D:\login.component.html'
Error: ENOENT: no such file or directory, lstat 'D:\login.component.html'

You are using absolute path to login.component.html. Routes in the declaration has to be relatives to the root of the project.

PythonDevOp commented 7 years ago

@malept - You can move those out to the root of src, or just create an html file and reference it in app.component.ts like so:

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './myTemplate.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'app';

And myTemplate.html can just be something like so:

<div> my app is named {{app}} </div>

@ebordon - I do believe I tried referencing 'D:\path\to\file` with the same results. Were you able to produce a working example otherwise with what you had suggested?

ebordon commented 7 years ago

@PythonDevOp try by modifying the reference to the template and style

import{Component} from '@angular/core'

@Component({
    moduleId: module.id,
    selector: 'login-form',
    templateUrl: './app/loginForm/login.component.html',
    styleUrls: ['./app/loginForm/login.component.css']
})

export class LoginForm{
    name = 'app';
}

All the references are from src folder.

I made a starter repo if you want to try it https://github.com/ebordon/electron-forge-angular4-starter/

PythonDevOp commented 7 years ago

Ok. I reviewed the code you had in your repo and I found my problem. It was 2 fold; addition of moduleId: module.id AND the path were the issue. I did need to add the folder that the HTML was in.

I was not aware that I had to use the relative path, so thank you for pointing that out. With a typical Angular app, the convention I have seen is something like ./login.component.html. The addition of the module code was to troubleshoot, but apparently that was only for Angular 2 and may not apply now with Angular 4.

In any event, it works! Thanks!

Old Code:

import{Component} from '@angular/core'

@Component({
    moduleId: module.id,
    selector: 'login-form',
    templateUrl: './login.component.html',
    styleUrls: ['login.component.css']
})

export class LoginForm{
    name = 'app';
}

New Code:

import{Component} from '@angular/core'

@Component({
    selector: 'login-form',
    templateUrl: './app/loginForm/login.component.html',
    styleUrls: ['login.component.css']
})

export class LoginForm{
    name = 'app';
}