Skip to content

Specifying quarkus.web-bundler.node-modules leads to a build error #398

@marko-bekhta

Description

@marko-bekhta

Noticed this when cleaning things up after the update to 2.x in https://github.com/quarkusio/search.quarkus.io

If quarkus.web-bundler.node-modules config property is set, build results in:

[INFO] --- quarkus:3.30.6:build (default) @ demo1 ---
[INFO] [io.quarkiverse.web.bundler.deployment.WebDependenciesProcessor] All Web Dependencies are already installed in './aaa/node_modules'.
[INFO] [io.quarkiverse.web.bundler.deployment.BundlePrepareProcessor] Preparing Web Bundling for 'app' with 1 files
[INFO] [io.mvnpm.esbuild.deno.ScriptLog] [0merror: Import "esbuild-sass-plugin" not a dependency
[INFO] [io.mvnpm.esbuild.deno.ScriptLog] [0mhint: If you want to use the npm package, try running `deno add npm:esbuild-sass-plugin`
[INFO] [io.mvnpm.esbuild.deno.ScriptLog] at file:///...../web-bundler-nodemodules/demo1/target/web-bundler/prod/build.js:3:26
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

to reproduce:

  • create a simple quarkus app (e.g. with REST)
  • add quarkus-web-bundler dependency
  • add a simple src/main/resources/web/index.html
  • add quarkus.web-bundler.node-modules=aaa to application properties
  • try to build the app with e.g. mvn clean package -DskipTests

looks like the build fails to import the sass plugin:

import * as esbuild from 'esbuild';

import {sassPlugin} from 'esbuild-sass-plugin';

const nodeModulesDir = "../../../aaa/node_modules";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions