Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 15 15:20
    alanhg commented #1997
  • Sep 30 15:12
    bbrink68 commented #2049
  • Aug 23 13:34
    SouravKumar89 edited #2058
  • Aug 23 13:27
    SouravKumar89 opened #2058
  • Aug 22 00:04

    PatrickJS on master

    Update README.md (compare)

  • Aug 13 17:17
    ramsunvtech commented #1925
  • Aug 12 22:58
    terrancecorley commented #770
  • Aug 09 02:30
    jindovu commented #2049
  • Aug 09 02:22
    jindovu opened #2057
  • Aug 08 10:49
    krawinkelm commented #2053
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 09 11:40
    Sanafan commented #1713
  • Jul 05 11:41
    hoang-innomizetech commented #2053
  • Jul 05 07:32
    Jilaba commented #1824
  • Jun 29 04:31
    Jason-Cooke synchronize #2055
  • Jun 28 14:51
    jesslilly commented #1827
  • Jun 12 18:16
    dvaldivia commented #1969
  • Jun 12 17:55
    dvaldivia commented #2049
Smithi
@smith64fx
hey guys, i just created this issue: AngularClass/angular2-webpack-starter#937
I'm interested in creating a native iOS/Android App starting from the angular2-webpack-starter
No extra functions, just a native app that behaves same like the web app.
Marian
@bitflut
Hey everyone, can someone help me with a very basic question? I want to include a 3rd party javascript file (that can be consumed via a commonJS or ES2016 import). I'm including it successfully in my vendor.ts file and can see that webpack correctly compiles it. Now, when I try to import it in my TypeScript file, it gives me an error "Cannot find module".
Marian
@bitflut
If I use commonJS syntax instead of ES6 it works. I don't understand why, though 😱 Any hint very appreciated.
mannuodesk
@mannuodesk
Hi Everyone, I have build an application in Angular 2 and now I want to deploy it.
Kindly help me out as I am facing issues to deploy the app
Navin Saini
@sumedha-navin
@mannuodesk I have same problem :worried:
Dominik GΓ€tjens
@dcg
just npm build:prod and copy the created static html+js files into an webserver?
maybe you need to describe your problem with a little more detail
Smithi
@smith64fx
@mannuodesk you need a reverse proxy like nginx, that is pointing to your /dist folder, which is created after running npm:build:prod
npm run build:prod
so
www.example.com goes to /dist, which renders index.html etc..
Navin Saini
@sumedha-navin
@mannuodesk put your dist folder code into the server root directory where you point your website address.
No extra code need to upload like node_modules,src or package.json file.
All the files are bundled into the dist folder.
I put my dist folder code into root server and its working fine :smile:
Stef Heyenrath
@StefH

@rjlee7 : you need something like

require('zone.js/dist/proxy'); // since zone.js 0.6.15
require('zone.js/dist/jasmine-patch'); // put here since zone.js 0.6.14

See updated https://github.com/AngularClass/angular2-webpack-starter/blob/master/config/spec-bundle.js

Amit Kumar Verma
@amitkverma
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
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
@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
Anthony
@qdouble
@cristian-eriomenco you'd have to use System.builder along with something like gulp... https://github.com/mgechev/angular2-seed
Cristian Eriomenco
@cristian-eriomenco
@qdouble So that said systemjs doesn't work-out itself where to look for modules, if i'm inside 'dist' folder?
Anthony
@qdouble
@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
@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
@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
@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
@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
@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
@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
@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
@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
hi guys, anyone else having issues resolving "Promise" on a freshly-cloned copy of the starter seed?
Eric Kisner
@exk0730
nvm, need to add "core-js" to the types array in tsconfig.json
Clayton K. N. Passos
@netstart
How can i use the seed to share components between multi aplications? It's possible?
Clayton K. N. Passos
@netstart

What is the best practice to share code between projects?
How can I share components between projects?

Below dashboard example should be use components of the eye project, and nose project.

src
β”œβ”€ eye
β”‚ β”œβ”€β”€ components
β”‚ β”‚ β”œβ”€β”€ eye.component.html
β”‚ β”‚ β”œβ”€β”€ eye.component.ts
β”‚ β”‚ β”œβ”€β”€ eye.component.css
β”œβ”€ nose
β”‚ β”œβ”€β”€ components
β”‚ β”‚ β”œβ”€β”€ nose.component.html
β”‚ β”‚ β”œβ”€β”€ nose.component.ts
β”‚ β”‚ β”œβ”€β”€ nose.component.css
β”œβ”€ dashboard
β”‚ β”œβ”€β”€ components
β”‚ β”‚ β”œβ”€β”€ dashboard.component.html
β”‚ β”‚ β”œβ”€β”€ dashboard.component.ts
β”‚ β”‚ β”œβ”€β”€ dashboard.component.css

Other example, to ilustrate

In the structure below, commonaplication need share eye.component and nose.component with bodyaplication and dashboardaplication.
src
β”œβ”€β”€ commonaplication
β”‚ β”‚ β”œβ”€β”€ components
β”‚ β”‚ β”œβ”€β”€ eye.component.ts
β”‚ β”‚ β”œβ”€β”€ nose.component.ts
β”œβ”€β”€ bodyaplication
β”‚ β”œβ”€β”€ components
β”‚ β”‚ β”œβ”€β”€ head.component.ts
β”œβ”€β”€ dashboardaplication
β”‚ β”œβ”€β”€ components
β”‚ β”‚ β”œβ”€β”€ dashboard.component.ts

Sandeep Ranjit
@ersandeepranjit
can anyone help me to configur the webpack -dev -server to run in MEAN Stack using along with angular class config
Jay
@Web2Integrators
hi I am using material2 branch.I upgraded package json to use rc6 and latest material 2
I am getting this error
main.browser.ts:49 Error: Template parse errors
any help here please?
rvalimaki
@rvalimaki
In tsconfig there is now a new configuration to enable absolute import paths: "baseUrl": "./src". However, using absolute paths breaks the webpack itself: "ERROR in ./src/path/to/code/foo.ts Module not found: Error: Can't resolve 'app/absolute/path/bar' in 'blahblah'
Any workaround for that, or do I still need to use relative paths? (Relative paths are a major PITA for shared types, and a great headache for every refactor)