import {event} from "./selection/on";
export default function() {
var current = event, source; // here
while (source = current.sourceEvent) current = source;
return current;
}
IN any scenario when I get the core from dev and link this with `yarn link`
i get error:
```
Uncaught TypeError: current is null
__WEBPACK_DEFAULT_EXPORT__ sourceEvent.js:5
__WEBPACK_DEFAULT_EXPORT__ mouse.js:5
onMouseMove index.ts:274
contextListener on.js:27
onAdd on.js:70
__WEBPACK_DEFAULT_EXPORT__ each.js:5
__WEBPACK_DEFAULT_EXPORT__ on.js:94
addEvents index.js:10174
setTimeout handler*../../core/dist/index.js/</ChartwerkPod.prototype.addEvents index.js:10170
render index.js:9978
<anonymous> demo.html:42
```
it happens in `sourceEvent.js`:
```
import {event} from "./selection/on";
export default function() {
var current = event, source; // here
while (source = current.sourceEvent) current = source;
return current;
}
```
IN any scenario when I get the core from dev and link this with
yarn link
i get error:
it happens in
sourceEvent.js
:I've researched and looks like it's because
d3.event
isnull
, but it's notnull
in the core inthis.overlay.on('mouseover'
)Looks like it happend because two different objects on
d3
used incore
andline-pod