Closed giridharkl closed 7 years ago
I'm getting the same thing.
Could you provide how you get this, i.e. what steps are needed to reproduce this error. Thanks,
Quentin
I have the same problem. Reproducing it can be done by:
npm install angular2-openlayers --save
ng serve
or npm start
/node_modules/angular2-openlayers/dist/components/map.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/attribution.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/control.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/default.component.d.ts (9,25): Cannot find namespace 'olx'.running is completely out of the question /node_modules/angular2-openlayers/dist/components/controls/default.component.d.ts (11,20): Cannot find namespace 'olx'. /node_modules/angular2-openlayers/dist/components/controls/default.component.d.ts (13,18): Cannot find namespace 'olx'. /node_modules/angular2-openlayers/dist/components/controls/default.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/fullscreen.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/mouseposition.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/overviewmap.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/rotate.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/scaleline.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/zoom.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/zoomslider.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/controls/zoomtoextent.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/formats/format.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/formats/mvt.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/default.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/doubleclickzoom.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/draganddrop.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/dragbox.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/dragpan.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/dragrotate.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/dragrotateandzoom.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/dragzoom.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/mousewheelzoom.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/pinchzoom.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (9,16): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (10,14): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (12,11): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (15,23): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (16,14): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (16,31): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (16,50): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (17,24): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (19,17): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (20,25): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/interactions/draw.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/layers/layer.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/layers/layertile.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/layers/layervector.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/layers/layervectortile.component.d.ts (9,29): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/layers/layervectortile.component.d.ts (9,51): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/layers/layervectortile.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/source.component.d.ts (5,26): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/sources/source.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/bingmaps.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/osm.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/vector.component.d.ts (12,13): Cannot find namespace 'ol'. /node_modules/angular2-openlayers/dist/components/sources/vector.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/tilegrid.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/vectortile.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/xyz.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/tilewms.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/sources/geojson.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/feature.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/styles/style.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/styles/circle.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/styles/text.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/styles/fill.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/styles/icon.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/styles/stroke.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/attribution.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/attributions.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/geometry.components.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/view.component.d.ts (1,1): Cannot find type definition file for 'openlayers'. /node_modules/angular2-openlayers/dist/components/overlay.component.d.ts (18,23): Cannot find namespace 'olx'. /node_modules/angular2-openlayers/dist/components/overlay.component.d.ts (1,1): Cannot find type definition file for 'openlayers'.
Angular cli version: 1.2.3 npm version: 5.3.0 node version: 6.10.2 angular version: ^4.0.0
The solution in #58 solves my problem.
Solution #58 merged in https://github.com/quentin-ol/angular2-openlayers/commit/39b4e83a56558a4545741b984fcd31f9524e0674.
Anytime :) Glad it helped