After doing some initial Angular 2 quick starts and Todos, I am trying to put up an initial structure with some simple build scripts for my next step. But now I am stuck at this error. I had been trying different solutions provided in similar questions asked here, for past couple of days, but my problem is still unresolved.
angular2-polyfills.js:1243 Error: ReferenceError: require is not defined
at eval (http://localhost:3000/app/app.js:11:14)
at eval (http://localhost:3000/app/app.js:42:3)
at Zone.run (http://localhost:3000/angular2/bundles/angular2-polyfills.js:1243:24)
Evaluating http://localhost:3000/app/app.js
Error loading http://localhost:3000/app/app.js as "./app/app" from http://localhost:3000/main.js
Zone.run @ angular2-polyfills.js:1243
zoneBoundFn @ angular2-polyfills.js:1220
lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468
lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480
lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451
lib$es6$promise$$internal$$publishRejection @ angular2-polyfills.js:401
(anonymous function) @ angular2-polyfills.js:123Zone.run @ angular2-polyfills.js:1243
zoneBoundFn @ angular2-polyfills.js:1220
lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
Here you can find the broken version of my code at GitHub.
Any help is much appreciated.
Thanks.