question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot read property 'getWrapX' of null

See original GitHub issue

When I click on view, I have this error:

ol.js:12 Uncaught TypeError: Cannot read property 'getWrapX' of null
    at e.prepareFrame (ol.js:12)
    at e.render (ol.js:12)
    at e.renderFrame (ol.js:12)
    at e.renderFrame_ (ol.js:12)
    at e.<anonymous> (ol.js:12)

I use openlayer 6.0.1 (I have the same error on 6.0.0)

My interctations initializer is:

const interactions = ol.interaction.defaults({ altShiftDragRotate: false, pinchRotate: false });
interactions.push(new ol.interaction.Select({
    condition: ol.events.condition.singleClick,
    addCondition: ol.events.condition.primaryAction,
    layers: [...],
    filter: ...
});

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
simonseyockcommented, Oct 3, 2019

This error sounds a little as if one of your layers does not have a source. Can that be the case?

0reactions
stale[bot]commented, Dec 14, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read properties of null ...
I am getting this error when I am trying to render elements by mapping over an array name "articles". < Uncaught TypeError: Cannot...
Read more >
Cannot read properties of null (reading '1') at getOS
Uncaught TypeError: Cannot read properties of null (reading '1') at getOS · 1) Make sure you have enabled the AMP validation tool ·...
Read more >
Uncaught TypeError: Cannot read properties of null ...
I'm trying to implement these instructions in my own project to make resizable views, but this error is getting thrown? What's causing this ......
Read more >
Uncaught typeerror cannot read property 'GETCONTEXT' of null
The video shows how to correct the error when drawing on a canvas html5 " Uncaught typeerror cannot read property 'GETCONTEXT' of ...
Read more >
typeerror can not read property x of null - YouTube
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found