I’m following this Socially Angular2-Meteor tutorial exactly once I get to the part about using “import {bootstrap} from ‘angular2-meteor-auto-bootstrap’;” I get a typescipt error:
"module “angular2/core” resolves to a non-module entity and cannot be imported using this construct.
I did try switching the ModuleResolution to “Classic” which gives me this error instead "Cannot find module 'angular2-meteor-auto-bootstrap. "
Right now the app works with the angular2/core error but it bugs me that it gives me an err
I have a very similar error with the angular-meteor tutorial for angular 2 as well (now at the beginning of step 8) after updating to meteor 1.3.1. Before updating everything worked fine.
My errors are as follows:
(…)
=> Started MongoDB.
client/parties-form/parties-form.ts (4, 31): Module ‘‘angular2/core’’ resolves to a non-module entity and cannot be imported using this construct.
client/parties-form/parties-form.ts (5, 62): Module ‘‘angular2/common’’ resolves to a non-module entity and cannot be imported using this construct.
client/parties-list/parties-list.ts (4, 31): Module ‘‘angular2/core’’ resolves to a non-module entity and cannot be imported using this construct.
client/parties-list/parties-list.ts (7, 26): Module ‘‘angular2/router’’ resolves to a non-module entity and cannot be imported using this construct.
client/party-details/party-details.ts (4, 31): Module ‘‘angular2/core’’ resolves to a non-module entity and cannot be imported using this construct.
client/party-details/party-details.ts (5, 39): Module ‘‘angular2/router’’ resolves to a non-module entity and cannot be imported using this construct.
client/party-details/party-details.ts (22, 9): Type ‘EJSONObject’ is not assignable to type ‘Party’.
Property ‘name’ is missing in type ‘EJSONObject’.
client/app.ts (1, 48): Module ‘‘angular2/core’’ resolves to a non-module entity and cannot be imported using this construct.
client/app.ts (5, 79): Module ‘‘angular2/router’’ resolves to a non-module entity and cannot be imported using this construct.
My imports look as specified in the tutorial, e.g.
import {Component, View} from ‘angular2/core’;
import {FormBuilder, Control, ControlGroup, Validators} from ‘angular2/common’;
The output of meteor list is as follows:
accounts-password 1.1.7* Password support for accounts
autopublish 1.0.6* (For prototyping only) Publish the entire database to all clients
es5-shim 4.5.9* Shims and polyfills to improve ECMAScript 5 support
jquery 1.11.7* Manipulate the DOM using CSS selectors
meteor-base 1.0.3* Packages that every Meteor app needs
mobile-experience 1.0.3* Packages for a great mobile user experience
mongo 1.1.6* Adaptor for using MongoDB and Minimongo over DDP
session 1.1.4* Session variable
standard-minifier-css 1.0.5* Standard css minifier used with Meteor apps by default.
standard-minifier-js 1.0.5* Standard javascript minifiers used with Meteor apps by default.
tracker 1.0.12* Dependency tracker to allow reactive callbacks
urigo:angular2-meteor 0.5.2 Everything you need to use AngularJS 2.0 in your Meteor app
Can anyone spot what’s wrong here or do I need to do any cleanup after updating? Also can someone confirm the tutorial works with 1.3?
Thanks a lot, any feedback is highly appreciated.
Glad to see I’m not the only one… I’m not a pro so usually I think I did something wrong. Followed the tutorial and tried many variations to try to get it to work for a couple days.