fegyi001 / mangol

Maps created with Angular & OpenLayers using Material design
http://188.166.116.137/mangol/
98 stars 47 forks source link

Namespace 'ol' has no exported member 'EventsListenerFunctionType'. #22

Closed gotnull closed 6 years ago

gotnull commented 6 years ago
[at-loader] Checking finished with 3 errors
(node:50765) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
   1243 modules

WARNING in ./node_modules/mangol/node_modules/@angular/core/esm5/core.js
6558:15-36 Critical dependency: the request of a dependency is an expression

WARNING in ./node_modules/mangol/node_modules/@angular/core/esm5/core.js
6578:15-102 Critical dependency: the request of a dependency is an expression

ERROR in [at-loader] ./node_modules/mangol/node_modules/@types/openlayers/index.d.ts:7307:48
    TS2694: Namespace 'ol' has no exported member 'EventsListenerFunctionType'.

ERROR in [at-loader] ./node_modules/mangol/node_modules/@types/openlayers/index.d.ts:7319:50
    TS2694: Namespace 'ol' has no exported member 'EventsListenerFunctionType'.

ERROR in [at-loader] ./node_modules/mangol/node_modules/@types/openlayers/index.d.ts:7329:48
    TS2694: Namespace 'ol' has no exported member 'EventsListenerFunctionType'.
webpack: Failed to compile.

openlayers ^4.6.6

gotnull commented 6 years ago

Running npm update @types/openlayers --save solved this issue.