-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Doesn't load template page in IE11 #387
Comments
I'm going to assume this is similar to my issue. I have a similar setup but I'm using Library Version: 2.0.0 Here is a converstaion on Discourse It seems as if Webpack Runtime gets to a point where the I have tried everything to get the But the question is why at times the Promise is defined and other times it is not. But still puzzled as to why I would need to do to get promise-polyfill loaded first if the stack trace returns back to promise-polyfill. If it returns back to there then it had to be loaded before the run time in order to start from there. You then think Promise would be defined. IDK grasping for straws. A solution is to put the following line in the index.ejs but that seems to be against the grain.
In aurelia-dialog this is where it starts
Which then calls ux: () => from the RENDERRERS.
The above is compiled to this
Which then calls the WebPack run time to resolve vendors.async~3e799143
It dies at But then you continue and you end up in the promise-polyfill try … catch
|
Thanks to @3cp we have a solution! To me this is a documentation bug. Some where it needs to be noted that these changes need to be made in order for To fix this issue you need to add the following
Here is an example of what the Resolve section should look like after a clean setup.
|
Your two aliases should be just one alias with two keys. I am surprised nodejs didn't complain about the duplicated object key (alias) in your webpack config. |
Good catch something like this
|
aurelia-dialog v1 uses aurelia-loader (the abstration layer normalized module loaders) to load dynamic resources. v2 switched to native dynamic However the dialog UMD build did normalize But our aurelia-webpack-plugin tries to load all In summary, IE should die :-) |
@3cp explains the issue here [Issue 387](aurelia/dialog#387) and here on [discourse](https://discourse.aurelia.io/t/ie11-dialog-promise-undefined/3240/16) > v2 switched to native dynamic import() statement to simplify the code. This is indeed a breaking change for IE11.
Please review the above cli PR (will be released in couple of days). |
I just did a review and found that the I'm going to assume that the changes to the I did a check by keeping the comments on the My only other suggestion is to keep the messaging consistent. One section it is commented out stating to Uncomment if using IE11 and the other section is not commented stating if you don't use IE11 to comment. Not that it matters because the If this works with the |
Yes, it worked without the alias, but I saw many strange WDS error in IE11 console. That could be due to the webpack transpiled |
Either way it will work. I have been working with my app with just the |
Thanks for the inside. I thought those WDS errors was caused by Let's keep the alias in CLI, it's by default behind comment (doesn't hurt much), so that users can still have something to try if they have other problems in IE11. This is just to be cautious, the |
I will do that, that sounds a good default. |
It was funny because I was thinking "What is this WDS". When I started to type Webpack-Dev-Server the light bulb went on. That and searching for WDS all results pointed to Webpack which I found odd at first until I realized what WDS is. Always good to be cautions especially when it comes to dated browsers. |
I'm submitting a bug report
2.0.0-rc.8
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
8.12.0
6.4.1
webpack 4.41.1
Browser:
IE 11
Language:
ESNext
Current behavior:
Just a white blank page when I open the template app in IE11.
Steps to reproduce:
√ Please enter a name for your new project: · aurelia-app
√ Would you like to use the default setup or customize your choices? · Custom App
√ Which bundler would you like to use? · Webpack
√ Which HTTP Protocol do you wish the outputted Webpack bundle to be optimised for? · HTTP/2
√ What platform are you targeting? · Web
√ What transpiler would you like to use? · Babel
√ How would you like to setup your HTML template? · None
√ What css preprocessor would you like to use? · None
√ Do you want to add PostCSS processing · None
√ Which unit test runner would you like to use? · Jest
√ Would you like to configure integration testing? · None
√ What is your default code editor? · None
√ Which features do you want scaffolded into your project? · Navigation App
√ Would you like to add a Dockerfile? · No
Then install npm dependencies
npm install aurelia-dialog --save
Then add aurelia.use.plugin(PLATFORM.moduleName('aurelia-dialog')); to main.js
Open internet explorer 11, type localhost:8080 and observe you're not seeing the template.
Works well on chrome, firefox, edge.
Be able to see the template, load the welcome page in IE11
Note: Version 1.1.0 works.
The text was updated successfully, but these errors were encountered: