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

2nd
Sep 2016
Amit Kumar Verma
@amitkverma
Sep 02 2016 07:11
Hey i am using angular2-webpack which have angular RC2 . I want to update it but it seems it is breaking my code. Any Notes for updating my project to current version.
Patukas
@Patukas
Sep 02 2016 09:26
node-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v48-win32-ia32.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.14 and node@6.4.0 (node-v48 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v48-win32-ia32.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.14 and node@6.4.0 (node-v48 ABI) (falling back to source compile with node-gyp)
99% Cocoa
@rjlee7
Sep 02 2016 13:22
@StefH thanks for the response! but the two lines were already in the spec-bundle. If you kindly have any other suggestions..
Cristian Eriomenco
@cristian-eriomenco
Sep 02 2016 13:32
Anthony
@qdouble
Sep 02 2016 13:41
@cristian-eriomenco you'd have to use System.builder along with something like gulp... https://github.com/mgechev/angular2-seed
Cristian Eriomenco
@cristian-eriomenco
Sep 02 2016 13:42
@qdouble So that said systemjs doesn't work-out itself where to look for modules, if i'm inside 'dist' folder?
Anthony
@qdouble
Sep 02 2016 13:44
@cristian-eriomenco creating production builds is a bit complicated with systemjs (which is why most of the community uses webpack for production), you'd have to study that repo I linked you to as far as seeing the strategy they use
Cristian Eriomenco
@cristian-eriomenco
Sep 02 2016 13:46
@qdouble Hmm, so tbh I get a feeling that apart from all the power that webpack provides, its been used because its easy to have a "bundle.js" file and not be bothered with lazy module loading
@qdouble Am I right, or thats a false feeling?
Anthony
@qdouble
Sep 02 2016 13:48
@cristian-eriomenco you can lazy load modules with webpack... but generally, probably the main reason it's popular is because it's very easy to create bundles... I tried for like 2 days when I first started on SystemJS and gave up
Cristian Eriomenco
@cristian-eriomenco
Sep 02 2016 13:49
@qdouble Funny enough, I've already spend a couple of days trying to work it out and have no clue, how its meant to be referencing dependencies like (/node_modules/...) from dist folder without copying them inside.
Anthony
@qdouble
Sep 02 2016 13:51
@cristian-eriomenco I haven't touched it for months outside using plunker, so not sure the best way...but I'd recommend either using a seed project that does what you need already or switching to webpack
Cristian Eriomenco
@cristian-eriomenco
Sep 02 2016 13:51
@qdouble I'm saying copying because inside Index.html we reference a couple of them
@qdouble Thank you for the link, I'll look into that project, my single concern is that most of those seed projects are overbloated with karmas, wallaby's, protractors, jasmines, e2e's and many dependencies that I would avoid as a beginner
@qdouble This is why I'm trying to work out a minimum viable project setup which will be easy to explain to my Team Mates
Anthony
@qdouble
Sep 02 2016 13:54
@cristian-eriomenco other than it taking up disk space, most of those other dependencies shouldn't get in your way
@cristian-eriomenco well what you could do is take the big base project, get your stuff working, then start stripping away what you don't need
Cristian Eriomenco
@cristian-eriomenco
Sep 02 2016 13:55
@qdouble I'm thinking about that actually :) its a good point
@qdouble So I see that the seed project you've linked uses mainly gulp for transpiling, and copying the files yep?
Anthony
@qdouble
Sep 02 2016 13:57
@cristian-eriomenco yeah, system builder will create the bundle and gulp will be the task runner.... you probably could also just use npm scripts instead of gulp
Eric Kisner
@exk0730
Sep 02 2016 14:17
hi guys, anyone else having issues resolving "Promise" on a freshly-cloned copy of the starter seed?
Eric Kisner
@exk0730
Sep 02 2016 14:25
nvm, need to add "core-js" to the types array in tsconfig.json