-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
JS console is being spammed with Promise being deprecated #7409
Comments
The last thing the console needs is more spam. What's the right way to fix this? Silence the warnings? Or heed them? |
I'd vote for fixing them. They seem to be coming from deep within the js-sdk, so this may be non-trivial to fix. I'm not sure suppressing them is a good idea given it's already at the deprecation stage and we risk forgetting about it and having it all break down on us. |
Doesn't look super difficult to fix How to fix: https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Deferred Example of a fix: https://github.com/matrix-org/matrix-react-sdk/pull/1292/files |
Hopefully they are all that simple... |
Signed-off-by: Aaron Raimist <[email protected]>
Signed-off-by: Aaron Raimist <[email protected]>
Signed-off-by: Aaron Raimist <[email protected]>
Signed-off-by: Aaron Raimist <[email protected]>
Signed-off-by: Aaron Raimist <[email protected]>
Signed-off-by: Aaron Raimist <[email protected]>
Signed-off-by: Aaron Raimist <[email protected]>
I guess that turns on warnings for everything, not just riot-web Signed-off-by: Aaron Raimist <[email protected]>
Fix riot-web Promise.defer warnings (#7409)
* Document how to turn off Piwik and bug reports (element-hq#6738) * Fix reskindex on matrix-react-side not being called if using build script * Add text saying that bug reports aren't automatic Signed-off-by: Aaron Raimist <[email protected]> * Fix double-closed tags * Use HTTPS cloning for riot-web too * Silence bluebird warnings * Disable webpack-dev-server auto reload As per comment * Fix Promise.defer warnings in getconfig.js (element-hq#7409) Signed-off-by: Aaron Raimist <[email protected]> * Fix Promise.defer warnings in index.js (element-hq#7409) Signed-off-by: Aaron Raimist <[email protected]> * Fix Promise.defer warnings in WebPlatform.js (element-hq#7409) Signed-off-by: Aaron Raimist <[email protected]> * Fix lint warnings and turn warnings back on (element-hq#7409) Signed-off-by: Aaron Raimist <[email protected]> * Undo turning warnings back on (element-hq#7409) I guess that turns on warnings for everything, not just riot-web Signed-off-by: Aaron Raimist <[email protected]>
Current status: I turned the warnings off in #7462 matrix-org/matrix-react-sdk#2198 and matrix-org/matrix-js-sdk#757 . @aaronraimist fixed the ones in riot-web and tuned warnings back on in #7444 but there are still plenty in react-sdk and js-sdk. |
Actually I didn't turn them back on. I tried. It seems like when I did it turned the warnings back on in Riot-web, they also turned back on for matrix-react-sdk and matrox-js-sdk. There are a few more I can do in matrix-react-sdk but I'm afraid there are a bunch that I'm not sure if I understand enough to be able to rewrite them. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Bluebird is now gone :D |
Warning: Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.
This started happening with the webpack 4 changes
The text was updated successfully, but these errors were encountered: