fegyi001/mangol

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

Closed this issue · 1 comments

[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

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