Add logging of resulting webpack loader objects during invalid configuration object errors
See original GitHub issueFeature request
Is your feature request related to a problem? Please describe.
Webpack 5 is out and I was excited to try using it! I’ve pinned the dependency via the resolutions
field in package.json
, but - upon running next build
- I’m met with a large callstack related to: “ValidationError: Invalid configuration object.”. The problem is that the Webpack config is defined as a result of many functions in next source code AND the amalgamation of many plugins (or not if one doesn’t use them.)
It would be helpful for both myself and plugin owners, if the specific loader in question (and it’s shape/appearance) was brought to the attention of developers when facing a webpack build validation error.
Describe the solution you’d like
If a webpack build validation error throws, the problematic loaders should be logged.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Add logging of resulting webpack loader objects during invalid ...
json , but - upon running next build - I'm met with a large callstack related to: "ValidationError: Invalid configuration object.". The problem...
Read more >Invalid configuration object in webpack - Stack Overflow
Webpack has been initialised using a configuration object that does not match the API schema. - configuration. output.
Read more >How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >Loader Interface - webpack
A loader is a JavaScript module that exports a function. The loader runner calls this function and passes the result of the previous...
Read more >Module Methods - webpack
This section covers all methods available in code compiled with webpack. When using webpack to bundle your application, you can pick from a...
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
Yeah it’s transpile modules. Use my copy till the author updates it. Mine is a little slower because I turn off caching on transpiled modules to make it work.
It’s not recommended ofc. But it works and would unblock you at the expense of slightly slower builds. Had the fork in production for about a month or two. I pushed a bunch of new fixed to it today as I’ve started updating all my apps to v5 stable
https://www.npmjs.com/%40module-federation%2Fnext-transpile-modules
I won’t be maintaining the fork once the main repo is updated. So keep an eye transpile-modules
Docs are outdated but it works on next 955 and v5 stable
Haha sure. Just unblocking you 👍