Open saschagrunert opened 7 years ago
Yeah, I can confirm this. Edge reports the following:
[WARNING] SEC7112: Script from <...>/main.dart was blocked due to mime type mismatch
[ERROR] SCRIPT5007: Unable to get property 'apply' of undefined or null reference.
....
and so on.
k tnx. I'll take a look.
I am not sure if this is related to webcomponentsjs or dart. The mentioned browsers complain about not being able to load index.dart
, which indeed does not exist but the transpiled JavaScript.
tested with Edge
and now it works. need testing for Safari.
I've also noticed that Edge
will complain about a lot of missing files if the "dev tools" (how dare they call that crap a dev tool ?) are opened, some of which are .dart
files that makes no sense.
I suspect it's only a matter with the sourcemaps infact my test is working (with "dev tools" closed).
Let me know how it goes for you.
Alright, thanks for the fix. I just tested it under Safari 10.1.2, the page loads but it complains about some missing javascript maps:
I notice some timeout too. That can be caused by dartdevc being to slow. Try reloading the page and see if it's better. For the sourcemaps, if you're using pub serve
that can be an issue with dartdevc
. Otherwise try using pub serve
.
@dam0vm3nt yes I used pub serve
to load the page. I guess the timeout occurs because my MacBook Pro is a bit slow, correct.
It still does not work via iOS, but I am currently not able to see the debug console output from the mobile page. :/
Thanks for your work. I tested it with Edge 40.15063
in a Win10 VM an unfortunately for me occur the same errors as before. I did a countertest in Chrome on the VM and it works fine as expected. I deleted .pub
, .package
and build
dir, pulled your changes and did pub get
, pub build
and pub serve
again. Maybe you have some additional ideas?
@Drogglbecher that's strange. The same test I've made and it works. I'll check edge version. Please can you try cleaning edge cache and without Dev tools open?
@saschagrunert I think you can connect macpro safari dev tool to the iPhone browser and check with that.
@Drogglbecher This is what I've done :
pub serve
on the linux hostThis is the result:
In my previous test I've made a pub build
and then served build/web
through polymer serve
and it worked without having to open on chrome
first.
The only differences between the two method are :
pub serve
the code is genereted in "debug" mode and that means there are some more file that are loaded (stack trace mapper) and source maps are generatedpub serve
the build is done at first serve and that may cause timeouts.Can you confirm that any of the above methods (opening first with chrome and refreshing, or serving a build without pub serve
) is working ?
We are not able to serve the example for Mobile Safari and Windows (Edge/IE) browsers. Can you confirm this and how can this be fixed?