Webpack 5 Support
See original GitHub issueDescribe the bug I get a parser error when attempting to run a build with webpack 5
To Reproduce Running a build returns with the following error.
****/src/locale/fr-CA/messages.json
Module parse failed: Abstract method Parser.parse. Must be overridden.
File was processed with these loaders:
* ./loaders/lingui.js
Expected behavior The build would pass.
Additional context I’m using the @latest version of lingui and babel 7.10 with “@lingui/macro”: “2.8.3”
I have tried implementing the following mentioned on this git issue but had other parsing errors.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (10 by maintainers)
Top Results From Across the Web
Webpack 5 release (2020-10-10)
Webpack 5 adds support for some CommonJs constructs, allows to eliminate unused CommonJs exports and track referenced export names from require ...
Read more >facebook/create-react-app - Webpack 5 support overview
Overview of tasks needed for updating CRA to Webpack 5 - Some of the work will support both Webpack 4 + 5 but...
Read more >What's New in Webpack 5 - Frontend Digest
What's new in Webpack 5 · Faster builds with persistent caching · Smaller bundle sizes · Better long term caching · Breaking changes...
Read more >Upgrading Webpack 4 → 5 | Square Corner Blog
Webpack 5 Gains · Decreased bundle size by 27-28% · Decreased build time by 10% (2m 54s → 2m 36s) · Cached dev...
Read more >Webpack 5 Adoption - Next.js
Improved Long Term Caching of Assets: Deterministic code output that is less likely to change between builds; Improved Tree Shaking; Support for assets...
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 Free
Top 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
@marswong @colinaaa give it a try to 3.8.10, I’ve released a fix. I’ve tried with our next-js example which uses webpack 5 under the hook and worked nice
Let me create a reproducible repo and we’ll fix the issue asap 😃