-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack does not generate feedback when the backend component is bundled #12899
Comments
I'm aware of this issue, but I have no idea why it occurs. There's nothing in the backend build step that "suppresses" the output - it just doesn't appear. Note that errors - if there are any - still appear. But in case of success, webpack prints nothing. |
I did some test, maybe that can help you pinpoint the issue. When I try to include a file that does not exist in frontend bundle (import 'should-fail.css'; in ...frontend-module.ts) Webpack stays silent. Then I've tried to disable parts of the native-webpack-plugin. As soon as compiler.hooks.afterEmit.tapAsync is called (even with an empty function as handler) Webpack stops generating messages. |
Ha, that's pretty useful info, thanks! I'll see whether I can use another compiler hook to achieve the same behavior 👍 |
That may not be needed, I've been tempering with the resulting js file of the plugin and when I change the result to:
I get messages again (the callback parameter and the call of callback as last line). Edit: This is probably not be the solution, I get missing files when I try to compile. |
@meisenbarth-work Using |
Works for me, thanks a lot! |
Bug Description:
I've updated my project to use Theia 1.40.1 and enabled to bundling of the backend server (by deleting and letting theia regenerate webpack.config.js), now Webpack does not generate feedback messages anymore.
Steps to Reproduce:
Additional Information
I've updated all dependencies to the latest version using yarn upgrade to ensure it is not due to an old version in my setup.
When I disable the bundling by commenting out nodeConfig.config in the modules.exports array feedback is again generated, but I get the warning 'require function is used in a way in which dependencies cannot be statically extracted' (which should be suppressed according to gen-webpack.config.js)
The text was updated successfully, but these errors were encountered: