Typescript module systems on momentJS behaving strangely

I'm trying to use momentJs from typescript: depending on what module system I'm using to compile typescript, I find a different behaviour on how I can use momentJs. When compiling typescript with...

Angular2 - The selector "my-app" did not match any elements (only on first load)

Does anyone know why I get this error when the page loads the first time in my Angular2 app? It clears away and doesn't come back as I navigate through my app. If I hit CTRL+F5 it tends to come...

Nodejs lightweight framework

Looking for a framework in Node.js Which is lightweight [low memory footprint] Support Rest, with request and response headers http request Supports Fibers Supports local npm packages Lightest...

How do you deploy Angular apps?

How do you deploy Angular apps once they reach the production phase? All the guides I've seen so far (even on angular.io) are counting on a lite-server for serving and browserSync to reflect...

'concurently' is not recognized as an internal or external command, operable program or batch file

I try to run angular 2 project. There is package.json: { "name": "angular2-quickstart", "version": "1.0.0", "scripts": { "start": "concurrently \"npm run tsc:w\" \"npm run lite\" ", "tsc":...

highlight.js does not work with Angular 2

I am trying to add syntax highlighting to my application using highlight.js but it doesn't seem to work with Angular 2. Could you please let me know what I might be doing incorrectly? Here is the...

svg <use> in Angular 2 Component seems to not work in IE11

Can anyone point me if svg <use> can work in IE 11 and how, inside of Angular 2 component? It works fine in Chrome but does not work in IE for me. I did include svg4everybody.js library but if I...

What are differences between SystemJS and Webpack?

I'm creating my first Angular application and I would figure out what is the role of the module loaders. Why we need them? I tried to search and search on Google and I can't understand why we...

Running Jasmine Unit Testing with Angular 2 from CDN running SystemJS

I am looking to run Angular 2 from CDN links with SystemJS and also want to setup unit testing with Jasmine. I have managed to get it loading the application and setup Jasmine in my code which is...

TypeScript-'s Angular Framework Error - "There is no directive with exportAs set to ngForm"

I keep getting this error while using TypeScript's Angular2-forms framework: There is no directive with "exportAs" set to "ngForm" Here's my code project dependencies : "dependencies": { ...

Angular 2 @progress/kendo-angular-grid will not work with webpack?

Based on http://www.telerik.com/kendo-angular-ui/getting-started I started with the webpack QS and got the button to show fine. Then I started the the...

Angular2 Tutorial (Tour of Heroes): Cannot find module './app-routing.module'

I am going through the NG2 tutorial on here, but I've hit a stumbling block. When I try and import my AppRoutingModule in my app.module.ts file I get a 'Cannot find module './app-routing.module'...

NPM not installing packages

I have a project with dependencies in package.json. When I install with npm install, I get packages installed in ~/.npm but not in the current folder's node_modules. NPM is creating node_modules,...

Angular2 (ngSubmit) not working

I've just started Angular2 and facing following error when add (ngSubmit) attribute to my form Template parse errors: There is no directive with "exportAs" set to "ngForm" (" <form [ERROR...

what's the correct way to import angular-mocks

Versions typescript: 2.1.4 systemjs: 0.19.41 angular: 1.5.10 angular-mocks: 1.5.10 Problem I'm trying to load angular-mocks with systemjs in a typescript 2.0 project. If i use the following it...

Angular upgrade guide. (SystemJS) Unexpected token <

everyone. I'm trying to upgrade big appliction which was written on angular 1 to angular 2. As first step it try to create hybrid angular 1/2 appliction using official guide. When all instructions...

Cannot find module "." at webpackMissingModule

This is the error I'm getting: Cannot find module "." at webpackMissingModule This is my webpack.config.js file. How can I find out which line is causing the error? If it is not...

Compress vendor JS libraries

I'm trying to get a single vendor.min.js to reduce the number of external files to be loaded and to do so I have the following gulp task: gulp.task('vendor-bundle', function() { gulp.src([ ...

Build:Cannot find type definition file for 'node'

VS 2015 community edition (at home), npm 3.10, Angular 2 Im trying to pull get Angular2 setup within an ASP.Net MVC 5 app. The template I started with used an older version of Angular, so I...

How to downgrade custom pipe written with angular2 to be used in angular 1.5?

I wrote component that is using a pipe in angular 2. Now I am trying to downgrade the component to be used in my angular 1.5: angular.module('myApp') .directive('Item',...

'router-outlet' is not a known element

I have a mvc 5 project with a angular frontend . I wanted to add routing as described in this tutorial https://angular.io/guide/router. So in my _Layout.cshtml I added a <base href="/"> and...

Unhandled Promise rejection: Rx_1.Subject is not a constructor ; Zone: ; Task: Promise.then ; Value: TypeError: Rx_1.Subject is not a constructor

I have an Angular 2 app, that uses systemjs to map/load. Importing the rxjs in the project, and referencing it is fine, but when the code is deployed, it fails to construct a Subject variable with...

ng serve and ng build is not working

I downloaded this github project . this is working fine when I am using NPM START. but when I am using ng serve or ng build this is not working. this is giving the error: error log Versions of...

wijmo.xlsx & JSZip with Angular 4

I am having troubles using wijmo.xlsx and JSZip on Angular 4 for my Wijmo project. wijmo.xlsx requires JSZip as a dependency. When I import JSZip in a TypeScript file as below it displays error an...

How to put dc.js and crossfilter.js html page in a Angular component?

I'm trying to put a pie chart into an Angular component. I have built this piechart in a separate HTML file but now I would like to get this HTML into a Single Page Application. <html> <head> ...

Electron + Ionic + child_process

I'm building an electron app to run on Windows to move a robot. (The controlling device must be windows as requested by the customer) It's built in Ionic with typescript and I'm attempting to...

Search pdf page using PdfJs & PDFFindController constructor

I am displaying pdf documents using PDF.js. Now I want to be able to search for text within a pdf document. There are some examples on how to do this, but they do not work, because the constructor...

npm install issues TypeError: Cannot read property 'match' of undefined

I'm having massive issues installing the packages via npm. I'm getting nothing but this log as an output and have no idea where or how to fix this issue. 0 info it worked if it ends with ok 1...

How do I get the publicPath to update using Angular 8 with single-spa to load font awesome?

I'm trying to update webpack_public_path using Angular. I'm using the single-spa library and I'm having an issue loading font-awesome fonts. It's looking for them in the root of our server ('/')...

images in src in angular 12 update are not loadded in webpack-dev-server

when we update our code for angular 12, we have an issue with webpack-dev-server (prod works ok) with the images src on HTML. e.g: please see example for the image src here <div class="hbox...