babel-plugin-lingui-extract-messages doesn't work when targeting IE 11
See original GitHub issueIf 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:
- Created 6 years ago
- Comments:22 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.
Fixed in https://github.com/lingui/js-lingui/pull/39, lingui-cli@1.0.4