question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

babel-plugin-lingui-extract-messages doesn't work when targeting IE 11

See original GitHub issue

If I add the browser ie 11 to my babel-preset-env config, then I get some errors if I try to build my application:

[info] Module build failed: TypeError: ...: Cannot read property 'reduce' of undefined
[info]     at collectMessage (...\node_modules\babel-plugin-lingui-extract-messages\lib\index.js:24:27)

I’m not sure if this has to do with js-lingui or if it’s an issue from another component.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
akkiecommented, Jul 10, 2017

I use flow also in react components, so your proposal won’t work. I’ve created a i18n env in babel which adds the necessary presets and plugins.

"env": {
  "i18n": {
    "plugins": [
      "transform-class-properties",
      "transform-es2015-classes",
      "transform-object-rest-spread",
      "syntax-dynamic-import"
    ],
    "presets": ["react"]
  }
}

Then I can execute cross-env BABEL_ENV=i18n lingui extract.

I’ll ask in the Neutrino.js Slack Channel if there is a way to execute third party commands with the generated babel configuration.

0reactions
tricoder42commented, Jul 10, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Explorer (IE) mode troubleshooting and FAQ
The following steps describe how to troubleshoot a neutral site configuration. Open a new tab in Microsoft Edge and go to edge://net-export.
Read more >
if !IE]> is not working as expected in this case - Stack Overflow
Reasons for why the Internet Explorer targeting doesn't work: Internet Explorer 10 and onward no longer support conditional comments ...
Read more >
How To Create an IE-Only Stylesheet - CSS-Tricks
IE provides comment tags, supported all the way up to the current IE 8 to target specific versions, as well as greater-than/less-than stuff...
Read more >
Angular < 13: How to support IE11 - DEV Community ‍ ‍
/** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist....
Read more >
Why you should have ditched IE support long ago... - Arek Nawo
Is Internet Explorer still relevant in 2020? And if so, should you bother to support it? Checking out IE history, JavaScript, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found