简体   繁体   中英

Cryptic error messages in OL3 v3.14.0

I am getting cryptic error messages in my console with OL3 v3.14.0. I just upgraded. Here is an example:

Uncaught TypeError: (0 , d.f) is not a function

I have javascript source maps enabled. Can someone let me know how I should have my environment configured so that I can see the actual error?

If you use ol-debug.js this will give you a more informative error, and allow you to step through the library using a browser's developer tools.

When bug fixing, or developing, I usually have a commented out bit of html to pull in an ol-debug.js cdn as needed, and switch with ol.js :

<!--  <script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.14.0/ol-debug.js"></script>-->

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM