-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Bug: "Uncaught TypeError: Class constructor c cannot be invoked without 'new'" in Yandex Browser #34067
Comments
<iframe src="https://dev.chat.ru/direct/abc/?layout=embedded&?isModern=true"></iframe> It would be good to have some sort of "handle" on the client side as a temporary solution to disable the check. This way, we could turn off "isModern" check specifically for the Yandex browser by identifying it in the user agent. |
Yeah, that could be a temporary solution to this by sticking to "web.server" and not using "web.server.legacy". A long term solution might involve making changes to the "modern.js" in the Meteor package itself to extend support. |
Hi! I would be grateful for any new details you could provide 😊 |
Hey @nektobit actually I was trying to setup your version of the Rocket.Chat server source code for local development but I couldn't since it requires 12+ GB RAM and after having a discussion with a maintainer yesterday on the channel (open.rocket.chat) it looks like I can't setup it up unless I bump my hardware. You can ask the fellow contributors/maintainers here it is quite active - https://forums.rocket.chat/c/community-support/7 Or if you build locally you can get it work for you -
I think the 1st one might be a bit easier to do you just have to locate this function in a path like this - meteor/packages/modern-browsers/modern.js. |
I am referring this to the team for consideration but don't expect a rapid response. |
We'll check into it |
Folks, this will be a won't fix for the time being since we are not planning to support Yandex. If you want to send a PR contribution to tackle it, please do and I'll see if I can get a review, but not an item that will be pursuing to fix. |
Bug: "Uncaught TypeError: Class constructor c cannot be invoked without 'new'" in Yandex Browser
When attempting to run Rocket.Chat in the Yandex Browser (https://browser.yandex.com/), the application fails to load and throws a
Uncaught TypeError: Class constructor c cannot be invoked without 'new'
error in the console. This issue prevents the application from functioning as expected.Steps to reproduce:
Expected behavior:
The Rocket.Chat application should load and function correctly in Yandex Browser without any errors.
Actual behavior:
The application fails to load, and the following error appears in the console:
Additional context:
This issue seems to be specific to Yandex Browser and does not occur in other commonly used browsers (e.g., Chrome, Firefox). Compatibility with Yandex Browser may need to be reviewed.
Server Setup Information:
Client Setup Information:
The text was updated successfully, but these errors were encountered: