577972 (1) [Avatar] Offline
#1
Good afternoon! I can not start an example from the book (" Angular 2 Development with TypeScript" 1 edition).

I run "npm install" and "npm start" in folder "angular-seed" from "chapter 2".
I also do the same in "auction" folder.


I saw only "Loading..." and nothing else.

I get an error in Chrome:
"""
127.0.0.1/:14 Error: (SystemJS) Cannot read property 'base64encode' of undefined
TypeError: Cannot read property 'base64encode' of undefined
at Object.base64encode (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:12103:1smilie
at Object.getSourceMappingURL (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:74018:46)
at printSourceFileOrBundle (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:74639:4smilie
at emitJsFileOrBundle (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:74588:13)
at emitSourceFileOrBundle (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:74545:13)
at forEachEmittedFile (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:74454:30)
at Object.emitFiles (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:74535:9)
at emitWorker (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:79069:33)
at http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:79029:66
at runWithCancellationToken (http://127.0.0.1:8080/node_modules/typescript/lib/typescript.js:79120:24)
Error loading http://127.0.0.1:8080/app/main.ts
"""

I'm using the "live server", "webstrorm" and code from "https://github.com/Farata/angular2typescript "
Anton Moiseev (27) [Avatar] Offline
#2
Thank you for letting us know! Just pushed an updated version to the repo, here is how you can fix it - Fix ch2 angular seed project.