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.

Cannot read property 'DispatcherBase' of undefined

See original GitHub issue

I’m trying to use ste-browser package, but by writing this html i get the error in the title:

<!DOCTYPE html>
<html>
    <head>
        <script src="https://cdn.jsdelivr.net/npm/ste-browser/dist/ste-simple-events.js"></script>
    </head>
    <body>
        aaa
    </body>
</html>

maybe i’m missing something or the documentation needs some integrations? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
michelevirgiliocommented, Nov 3, 2020

Thank you, the error is gone!

0reactions
KeesCBakkercommented, Nov 3, 2020

Should now work with the latest version:

<script src="https://cdn.jsdelivr.net/npm/ste-browser@latest/dist/ste-events.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ste-browser@latest/dist/ste-events.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ste-browser@latest/dist/ste-simple-events.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ste-browser@latest/dist/ste-simple-events.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ste-browser@latest/dist/ste-signals.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ste-browser@latest/dist/ste-signals.min.js"></script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'dispatch' of ...
In order to have variable or module accessible in another module, you have to properly export it. As you use ES6 standard import/export ......
Read more >
Uncaught TypeError: Cannot read property 'dispatcher' of ...
When zooming in and out a bunch on the debug style: Uncaught TypeError: Cannot read property 'dispatcher' of undefined VectorTile.remove ...
Read more >
How to Avoid Getting 'Cannot read property of undefined' in ...
Learn how you can avoid getting the famous 'Cannot read property of undefined' error in JavaScript with the logical OR operator.
Read more >
extending a module
util.inherits(Dispatcher, base);. and i get this error. TypeError: Cannot read property 'prototype' of undefined. at Object.inherits (util.js:404:43).
Read more >
Duplicate component on pypi repo one in capital and one with ...
Uncaught TypeError : Cannot read properties of undefined (reading 'getData') ... DispatcherBase.dispatch(DispatcherBase.java:63)
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