Skip to content
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

greenwood website home page loading has syntax error with internet explorer 11 (also causing no logo fade?) #198

Closed
1 of 5 tasks
thescientist13 opened this issue Sep 17, 2019 · 9 comments
Assignees
Labels
bug Something isn't working question Further information is requested website Tasks related to the projects website / documentation
Milestone

Comments

@thescientist13
Copy link
Member

thescientist13 commented Sep 17, 2019

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

Loading the Greenwood website in IE11 and the home page loads, but the fading text doesn't show and the button color is green not blue (like in #196 ).
ie-11-serve-home-page-no-animation

Otherwise the site is working pretty good! (also, this looks the same in production before the Polyfills changes)

Details

Maybe something to do with CSS @keyframe / animation? Not sure if that's a different issue from the syntax error?
ie-11-serve-home-page-syntax-error

Screen Shot 2019-11-10 at 6 36 32 PM

@thescientist13 thescientist13 added bug Something isn't working website Tasks related to the projects website / documentation labels Sep 17, 2019
@thescientist13 thescientist13 self-assigned this Oct 29, 2019
@thescientist13 thescientist13 changed the title greenwood website home page logo fade not working with internet explorer 11 (syntax error?) greenwood website home page logo fade not working with internet explorer 11 due to syntax error Nov 10, 2019
@thescientist13 thescientist13 changed the title greenwood website home page logo fade not working with internet explorer 11 due to syntax error greenwood website home page logo fade not working with internet explorer 11 (due to syntax error?) Nov 10, 2019
@thescientist13
Copy link
Member Author

thescientist13 commented Nov 10, 2019

Wondering if es5 adapter would be needed for this to get the syntax error fixed?

From there, not sure if we would also need some sort of PostCSS plugin for the fade too, to support CSS @keyframe / animation?

Found a SO post that seems to have a working solution for the CSS, once the syntax error is fixed.
https://stackoverflow.com/questions/34809544/css3-animation-is-not-working-in-ie11-but-works-in-other-browsers

@thescientist13 thescientist13 added the question Further information is requested label Nov 10, 2019
@thescientist13 thescientist13 changed the title greenwood website home page logo fade not working with internet explorer 11 (due to syntax error?) greenwood website home page loading has syntax error with internet explorer 11 (also causing no logo fade?) Nov 10, 2019
@thescientist13
Copy link
Member Author

thescientist13 commented Nov 10, 2019

Trying a few things to fix the loading error, no luck so far

Created a branch to try some of these things out with this and other various attempts

Seems like from the second screenshot, that some ES6 features aren't getting transpiled. Maybe open it up to all node_modules just to confirm?

@thescientist13
Copy link
Member Author

oh, right. this should probably use process.cwd(), not __dirname. 🤦‍♂

@thescientist13
Copy link
Member Author

So digging deeper into this, it looks like .babelrc isn't even getting loaded, likely because babel-loader is looking for the file in the root. 🤦‍♂

Once I added it as an option

module: {
  rules: [{
    test: /\.js$/,
    loader: 'babel-loader',
    options: {
      configFile: path.join(__dirname, 'babel.config.js'),
      include: [/node_modules/]
    }
  }, {

things started working breaking, so at least something is happening now, but will need to go down the rabbit hole a bit on this though, but definitely should git it fixed.

Will also probably want to look into checking .browserslistrc is also configured correctly as well.

@thescientist13 thescientist13 added the P0 Critical issue that should get addressed ASAP label Nov 12, 2019
@thescientist13
Copy link
Member Author

thescientist13 commented Nov 13, 2019

OK, got babel configuration working, but still seeing an issue in IE11 with class not getting recognized
ie-11-transpilation-class

Made an issue for tracking babel configuration specifically, removing P0 from this ticket #256

Probably because browserslist isn't working :/ . (will likely need to make a new issue)

@thescientist13 thescientist13 removed the P0 Critical issue that should get addressed ASAP label Nov 13, 2019
@thescientist13
Copy link
Member Author

Will need to enable process of node_modules, but this might mean it makes sense to do #224 instead...

@thescientist13 thescientist13 added this to the MVP milestone Nov 26, 2019
@aholtzman
Copy link
Member

Considering the audience for this site is primarily developers and others within the technology realm it seems incredibly unlikely that anyone visiting the site with IE 11 would be doing so intentionally. I vote to not worry about supporting IE and to close Thai and any related issues.

@thescientist13
Copy link
Member Author

thescientist13 commented Oct 9, 2021

Hmm, I certainly see your point regarding maintaining the website, but I wonder if the real world use cases out there support it though from a Greenwood CLI perspective? I feel like especially in corporate / enterprise and some (local) government, IE11 is still a meaningful consideration in regards to their user's browser demographics and so I feel like it's still worth tracking #224 at least. (I guess i was mostly keeping this open to keep us honest about the limitations of Greenwood? That said, maybe we can track along with the USWDS and their of support of IE11 as a leading indicator, which I think they plan on dropping soon?)

Basically, I would like to piggy back of our polyfills plugin and add support for (opt-in) differential loading so that (maybe in combination with our Babel plugin) a user could still build with modern standards and WCs, but still have the option to operate in an ES5 environment. WebComponents polyfills provide an ES5 adapter which I think we would want to leverage in this case.


TL;DR I agree for the website we can drop IE11 (close this issue), but I think providing a differential loading mechanism is still useful, so still keep #224 open, though at a lower priority unless someone asks for it perhaps? When we do add it, that's when we can use the website as an opportunity for dog fooding.

Thoughts?

@aholtzman
Copy link
Member

That is a solid plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested website Tasks related to the projects website / documentation
Projects
None yet
Development

No branches or pull requests

2 participants