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

Javascript console error if Message data is a string #168

Open
ventralnet opened this issue May 16, 2019 · 2 comments
Open

Javascript console error if Message data is a string #168

ventralnet opened this issue May 16, 2019 · 2 comments

Comments

@ventralnet
Copy link

ventralnet commented May 16, 2019

The sanitize method will throw an error if a Message event data is a string.

Specifically it looks like when you use the webpack dev server in development this happens when a hot deploy occurs. I assume this is how webpack informs the browser what has changed.

postmate.js?2a8e:80 Uncaught TypeError: Cannot use 'in' operator to search for 'postmate' in webpackHotUpdateb6875338fa40f73def8f
    at sanitize (postmate.js?2a8e:80)
    at reply (postmate.js?2a8e:322)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/in_operator_no_object

@ventralnet
Copy link
Author

Actually looking at the current source it looks like this error has been fixed but it has not reached NPM yet.

Any chance on a release?

@ventralnet
Copy link
Author

Resolved in #141

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