Skip to content

Instantly share code, notes, and snippets.

@orlaqp
Created April 21, 2016 15:27
Show Gist options
  • Save orlaqp/222854d6ff712624139e1f010d4502fb to your computer and use it in GitHub Desktop.
Save orlaqp/222854d6ff712624139e1f010d4502fb to your computer and use it in GitHub Desktop.
promise.js:16 Uncaught TypeError: Cannot read property 'resolve' of undefinedPromiseWrapper.resolve
@ promise.js:16meteorInstall.node_modules.angular2.src.router.route_registry.js
@ route_registry.js:26fileEvaluate @ install.js:141require
@ install.js:75meteorInstall.node_modules.angular2.src.router.router.js
@ router.js:24fileEvaluate @ install.js:141require
@ install.js:75meteorInstall.node_modules.angular2.router.js
@ router.js:10fileEvaluate @ install.js:141require
@ install.js:75meteorInstall.client.app.js
@ app.ts:5fileEvaluate @ install.js:141require
@ install.js:75(anonymous function)
@ app.ts:23
This is what I hace in app.ts:
import 'reflect-metadata';
import 'zone.js/dist/zone';
import { Component, provide } from 'angular2/core';
import { ROUTER_PROVIDERS, ROUTER_DIRECTIVES, RouteConfig, APP_BASE_HREF } from 'angular2/router';
// import { bootstrap } from 'angular2-meteor-auto-bootstrap';
import {bootstrap} from 'angular2/platform/browser';
import { Accounts } from '../imports/accounts/ui/components/accounts.component';
// import { Index } from 'apps/index/client/components/index.component';
@Component({
selector: 'app',
template: '<router-outlet></router-outlet>',
directives: [ROUTER_DIRECTIVES]
})
@RouteConfig([
{ path: '/accounts/...', as: 'Accounts', component: Accounts }
// { path: '/...', as: 'Index', component: Index, useAsDefault: true }
])
class CloudBooks { }
// this is line 23
bootstrap(CloudBooks, [ROUTER_PROVIDERS, provide(APP_BASE_HREF, { useValue: '/' })]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment