Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'send' of undefined #864

Closed
nightire opened this issue Aug 30, 2018 · 2 comments
Closed

Uncaught TypeError: Cannot read property 'send' of undefined #864

nightire opened this issue Aug 30, 2018 · 2 comments
Labels

Comments

@nightire
Copy link

During development of a new add-on, I noticed an error that caused by ember-inspector.

In order to help solve this issue more effectively, I prepare a reproduction repo at: https://github.com/very-geek/ember-plyr

Follow these steps to reproduce:

  1. npm install
  2. ember serve
  3. open http://localhost:4200/tests
    at this stage, all tests should be passed
  4. open chrome devtools (assuming using google chrome)
  5. switch to ember inspector tab
  6. refresh page
    now you should see the error, and some test cases should fail:
VM10735:2371 Uncaught TypeError: Cannot read property 'send' of undefined
    at Class.sendMessage (<anonymous>:2371:23)
    at Class.sendCount (<anonymous>:842:12)
    at invoke (backburner.js:249)
    at Queue.flush (backburner.js:167)
    at DeferredActionQueues.flush (backburner.js:326)
    at Backburner._end (backburner.js:748)
    at Backburner.end (backburner.js:513)
    at Backburner._runExpiredTimers (backburner.js:851)
@nlfurniss
Copy link
Contributor

Error happens here when at some point this.get('port') is undefined

@thorsteinsson
Copy link
Member

Thanks for creating a reproduction repo, it helped me track it down quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants