Currently, I am attempting to compile an example (example 9) from the new book "Angular 2 Development with TypeScript" by Y.Fain. The source code can be found at this link: . However, during the compilation process, I encountered the following error:
Unhandled Promise rejection: (SystemJS) host is undefined
base64encode@http://localhost:8080/node_modules/typescript/lib/typescript.js:12079:1
getSourceMappingURL@http://localhost:8080/node_modules/typescript/lib/typescript.js:73929:43
printSourceFileOrBundle@http://localhost:8080/node_modules/typescript/lib/typescript.js:74550:36
emitJsFileOrBundle@http://localhost:8080/node_modules/typescript/lib/typescript.js:74499:13
emitSourceFileOrBundle@http://localhost:8080/node_modules/typescript/lib/typescript.js:74456:13
forEachEmittedFile@http://localhost:8080/node_modules/typescript/lib/typescript.js:74365:30
emitFiles@http://localhost:8080/node_modules/typescript/lib/typescript.js:74446:9
emitWorker@http://localhost:8080/node_modules/typescript/lib/typescript.js:78992:30
emit/<@http://localhost:8080/node_modules/typescript/lib/typescript.js:78952:66
(below are additional lines of code that describe the error)
I have followed all the necessary environment setup instructions as outlined here by the author: . This includes setting up npm, typescript, http-server, and adding the baseURL parameter in systemjs.config.js:
baseURL: "/client",