Greetings,
Currently, I am working with Angular2 beta 12 within VS2015. Upon updating from rxjs version 5.0.0-beta.2 to beta.3, I started encountering several exceptions primarily related to promises.
For instance:
- The property
map
is not present in the typeObservable<Response>
- The property
share
does not exist in typeObservable<Response>
- It is reported that ambient modules declaration cannot specify relative module names
- Ambient modules are not allowed to be nested within other modules or namespaces.
Below is a snippet from package.json:
{
"name": "ASP.NET",
"version": "0.0.0",
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
},
...
}
The issue seems to revolve around the map function used in this code sample:
...
In another scenario, the problem arises with the usage of share()
:
...
I've also noticed some red underlines on certain rxjs files for relative references like ../../Observable
.
...
Moreover, my boot.ts file contains:
...
As for the HTML page:
...
I find myself at a loss and would greatly appreciate any help provided.
Many thanks, Dan.