An Angular 2 Webpack Starter kit featuring Angular 2, Router, TypeScript, and Webpack by AngularClass
90% optimize assetsError in bail mode: [default] /Users/Daily/Shortcut-Webpack/typings/browser/ambient/jquery/index.d.ts:3223:12
Subsequent variable declarations must have the same type. Variable '$' must be of type 'cssSelectorHelper', but here has type 'JQueryStatic'.
and I cannot figure out how I fixed it the first time, does anyone know?
@meiblorn
Hi, guys! I need help.
I am trying to write quick start for system.js for my first open source library: http://plnkr.co/edit/oeOnHTmWasmOgRhbKkcB?p=preview.
It throws "$ is not a function" error.
I am using typings in my project but don't know how to install typings in plnkr.
Help me to fix it, please.
(<any>$)(this._el.nativeElement).fullpage(this.options);
Would just like to tell you that you guys who have made this are amazing. Theres nothing worse than jumping into a stack and going, uh.. but what do I use...
The documentation is great and it looks like it's got everything I want.
Has anyone made an in-depth guide to the entire solution? I would love a video series using this explaining all the components and how they work.
Once again. THank YOU@!!@!
derzunov:angular2-webpack-starter derzunov$ sudo typings install
typings ERR! message Attempted to compile "zone.js" as an external module, but it looks like a global module.
typings ERR! cwd /Users/derzunov/projects/Angular2/angular2-webpack-starter
typings ERR! system Darwin 15.4.0
typings ERR! command "/usr/local/bin/node" "/usr/local/bin/typings" "install"
typings ERR! node -v v4.4.4
typings ERR! typings -v 1.0.2
typings ERR! If you need help, you may report this error at:
typings ERR! https://github.com/typings/typings/issues
Hey guys, I'm having a problem importing ng2-formly stuff into the webpack starter. I think it's because it's using SystemJS to export the modules?
repo: https://github.com/formly-js/ng2-formly
npm install ng2-formly --save results in ng2-formly.js in node_modules/ng2-formly which looks like this:
System.register(["./src/main", "./src/templates"], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
function exportStar_1(m) {
var exports = {};
for(var n in m) {
if (n !== "default") exports[n] = m[n];
}
exports_1(exports);
}
return {
setters:[
function (main_1_1) {
exportStar_1(main_1_1);
},
function (templates_1_1) {
exportStar_1(templates_1_1);
}],
execute: function() {
}
}
});
import {FormlyForm} from "ng2-formly/ng2-formly";
@ollwenjones
What I"m currently doing is having an project which is basically a fork of webpack starter, I keep pulling in here the newest update and tweak it to use my own libraries, I then pull that into my other projects which mostly works fine.
Do have to add that I keep having to remove home, about and changes to RouteConfig. But it's trivial.
package.json
for instance. Teammates don't want the Angular 2 UI in it's own repo for the good reason of not having two PRs in two repos to sync for any end-to-end change. I wonder if there's some git config I don't know about that could help with the pathing, or... investigate the dreaded/controversial 'git submodule?'
@Component({
template: require('./foo.html')
})
styles