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.

Add logging of resulting webpack loader objects during invalid configuration object errors

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

6reactions
ScriptedAlchemycommented, Oct 14, 2020

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

2reactions
ScriptedAlchemycommented, Oct 16, 2020

Haha sure. Just unblocking you 👍

Read more comments on GitHub >

github_iconTop 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 >

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