meteor/meteor · error · Error
Could not load HtmlRspackPlugin from host project.
Error message
Could not load HtmlRspackPlugin from host project.
What it means
Error "Could not load HtmlRspackPlugin from host project." thrown in meteor/meteor.
Source
Thrown at npm-packages/meteor-rspack/plugins/HtmlRspackPlugin.js:18
const RspackMeteorHtmlPlugin = require('./RspackMeteorHtmlPlugin.js');
const { loadHtmlRspackPluginFromHost } = RspackMeteorHtmlPlugin;
/**
* A plugin that composes the original HtmlRspackPlugin from @rspack/core
* and RspackMeteorHtmlPlugin, in that order.
*/
class HtmlRspackPlugin {
constructor(options = {}) {
this.options = options;
}
apply(compiler) {
// Load the original HtmlRspackPlugin from the host project
const OriginalHtmlRspackPlugin = loadHtmlRspackPluginFromHost(compiler);
if (!OriginalHtmlRspackPlugin) {
throw new Error('Could not load HtmlRspackPlugin from host project.');
}
// Apply the original HtmlRspackPlugin
const originalPlugin = new OriginalHtmlRspackPlugin(this.options);
originalPlugin.apply(compiler);
// Apply the RspackMeteorHtmlPlugin
const meteorPlugin = new RspackMeteorHtmlPlugin();
meteorPlugin.apply(compiler);
}
}
module.exports = HtmlRspackPlugin;
View on GitHub (pinned to 5076d2f818)
Solutions
- Install @rspack/core (or the package providing HtmlRspackPlugin) in your project: meteor npm install --save-dev @rspack/core.
- Ensure the host project's node_modules are installed by running meteor npm install.
When it happens
Trigger: Thrown when the HtmlRspackPlugin package cannot be resolved from the host project's node_modules.
Common situations: The app has not installed @rspack/core / html-rspack-plugin, or node_modules is not installed.
AI-assisted analysis of meteor/meteor@5076d2f818 (2026-08-13).
Data as JSON: /api/errors/9c9288194a1fda9e.
Report an issue: GitHub.