These are chat archives for AngularClass/angular2-webpack-starter

7th
Sep 2016
Sandria Agung Saputra
@andrizmitnick
Sep 07 2016 07:13
wanna ask, i'm new to angular, currently i'm using angular 2 rc6, and i want to install OfflinePlugin for webpack. where should i put this "require('offline-plugin/runtime').install();" line? should i put inside ngModule or every components i had?
i was using polymer before, because it's easy to setup a service worker. and now i want to try angular 2 if it's fully support service worker or not. thanks before
Sandria Agung Saputra
@andrizmitnick
Sep 07 2016 07:35
btw inside ../src/assets there's service-worker.js, is this service worker already registered?
lghinet
@lghinet
Sep 07 2016 08:23
hello is there a guide .. with angular 2 / webpack with multiple chunks ?
like each compoment with their on bundle.js
JeanPaul Attard
@jeanpaulattard
Sep 07 2016 09:01

Hi Guys :) I've been following the angular webpack starter guide, to upgrade my application to start bundling with webpack. That said, I'm running into problems when running the application. I'm always getting the following error attempting to load the app in the browser via the devserver.

core.umd.js?e2a5:6001 Error: Uncaught (in promise): ReferenceError: System is not defined
    at resolvePromise (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:558:32)
    at eval (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:535:14)
    at ZoneDelegate.invoke (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:332:29)
    at Object.onInvoke (eval at <anonymous> (http://localhost:4000/vendor.js:2129:2), <anonymous>:8772:45)
    at ZoneDelegate.invoke (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:331:35)
    at Zone.run (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:225:44)
    at eval (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:591:58)
    at ZoneDelegate.invokeTask (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:365:38)
    at Object.onInvokeTask (eval at <anonymous> (http://localhost:4000/vendor.js:2129:2), <anonymous>:8763:45)
    at ZoneDelegate.invokeTask (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:364:43)
    at Zone.runTask (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:265:48)
    at drainMicroTaskQueue (eval at <anonymous> (http://localhost:4000/polyfills.js:2475:2), <anonymous>:497:36)

Anybody know what is the cause of the problem please? Because I've been looking around, and haven't come to a solution.

99% Cocoa
@rjlee7
Sep 07 2016 15:21
^ same error