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

"TypeError: Unable to set undefined or null-referenced property "onMessage"" -IE10 #147

Open
huangxin290 opened this issue Aug 20, 2021 · 0 comments

Comments

@huangxin290
Copy link

Very strange bug, when it is used in a child component, it will report an error and the page will not display, but when it is used in an individual page, it will report an error but the page will display

this.$options.sockets.onmessage = data => {
      const msg = JSON.parse(data.data)
      if (msg.purpose === 'xxx')  this.loadData()
}

this.loadData() is a a Ajax function that gets the data

error message: [Vue warn]: Error in mounted hook: "TypeError: Unable to set undefined or null-referenced property "onMessage""

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

No branches or pull requests

1 participant