-
Notifications
You must be signed in to change notification settings - Fork 436
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
Cannot load Talk 11.x with IE 11 #4820
Comments
server has nextcloud-vue 3.2.0 |
a downgrade to nextcloud-vue 3.2.0 didn't help so probably talk is importing a component that needs ansi-regex where server/files doesn't |
deps for ansi-regex on nextcloud-vue 3.2.0:
and with stable20's version:
Talk works fine on stable20 with IE 11 so not sure why ansi-regex would suddenly not be working any more, I'll try and find out between 2.9.0 and 3.2.0 |
I did several tests and what I observed doesn't make sense: Spreed masterOn spreed master with nextcloud-vue 3.3.2, the one in package-lock, I see the ansi-regex error already posted above. Spreed master + npm linked nextcloud-vue 3.3.2I checked out nextcloud-vue v3.3.2, ran And here instead of ansi-regex I get the formerly known error about semver in event-bus: Why would npm link produce different results ?! I tried downgrading @babel/preset-env to 7.12.10 in nextcloud-vue repo (like #4821 (review)) but the errors stays the same. |
I justed tried running |
Some progress here: #4829 By adding This feels wrong. I think the transpiling should be one on nextcloud-vue side as we can't expect many consumers of the library to add that long list of exclusions. I still wonder how this could work with nextcloud-vue 2.9.0 in Talk 10 and why it stopped working with nextcloud-vue 3.2.0. Diffing the two didn't reveal any significant changes apart from library updates. |
I've tried adding the excludes directly into nextcloud-vue, like semver and event bus but with npm link whatever I put there it still has a syntax error on semver/nextcloud-event-bus. So we probably can't precompile/pre-transpile... |
I'm out of ideas and it feels like this is going to be much more work. Maybe we can continue with #4829 and see why Vue JS is not working correctly. |
I had a quick look into this and to me it seems that preset-env is not properly loading the plugins to transpile parameters and variable destructing to es5. Might be worth to check if manually adding those solves it: https://babeljs.io/docs/en/babel-plugin-transform-parameters Edit: If i understood the preset-env structure properly it seems that ie is missing here: https://github.com/babel/babel/blob/master/packages/babel-compat-data/data/plugins.json#L64-L74 |
I've discovered that there's potentially another issue with the way we load/transpile event-bus: #4818 |
I tried your proposal and even adjusted plugins.json, but made no difference for IE 11: I also have #4818 (comment) applied to avoid the event-bus issue, so now it's only about ansi-regexp. My impression is that the transpiling is not happening at all, because that dependency is deep inside of "@nextcloud/vue". What I don't understand is why it seems to not fail in the "server" repo as the files app loads properly. |
fixed in #4829 |
Steps to reproduce
git checkout v11.0.0-alpha.2
make clean && make dev-setup && make build-js
You might need to change the URL manually because for me the dashboard app also did not load with IE 11
Expected behaviour
Talk app can be opened
Actual behaviour
Talk app does not open, only the top bar is there.
Errors in log.
Screenshots
It seems something in nextcloud-vue is breaking with IE 11.
I tested with the files app which has a less recent version of nextcloud-vue and it seems to load there.
Needs further research.
The text was updated successfully, but these errors were encountered: