I use webpack to pack my app.But in the production environment, there are always errors like "Cannot read property'get Extent'of null". What did I do wrong? I want to know the answer.By the way, there is no problem in the development environment.
Complete:
Uncaught TypeError: Cannot read property 'getExtent' of null
at qv (main.6f105a2a60e74063e468.js:1)
at new t (main.6f105a2a60e74063e468.js:1)
at t.baseGmapImg (main.6f105a2a60e74063e468.js:1)
at t.baseMapGoogle (main.6f105a2a60e74063e468.js:1)
at t.init (main.6f105a2a60e74063e468.js:1)
at new t (main.6f105a2a60e74063e468.js:1)
at main.6f105a2a60e74063e468.js:1
at Fo (main.6f105a2a60e74063e468.js:1)
at main.6f105a2a60e74063e468.js:1
at new e (main.6f105a2a60e74063e468.js:1)
ol -----> 5.3.0
webpack ----->4.25.1
angular----->6.1.10
This issue was fixed with #8893
@fredj Same issue here, I am using
"ol": "^5.3.0",
Help will be highly appreciated.
@navinna please try with ol version 5.3.1
@fredj Thank you! it is working after updating
Most helpful comment
@navinna please try with ol version 5.3.1