scss-bundle icon indicating copy to clipboard operation
scss-bundle copied to clipboard

Build failure: "erro: "entryFile" is not defined."

Open madoar opened this issue 5 years ago • 1 comments

Describe the bug I'm currently updating the dev dependencies of the angular component library angular-archwizard. While updating a bunch of dependencies (see here for the performed changes) I ran into a build failure that occurred during the execution of scss-bundle (see here for the error log).

The build failed with the following error message:

[20:59:56] erro: "entryFile" is not defined.

I am not sure why scss-bundle can't find entryFile, because it is defined inside the scss-bundle.config.json file which consists of:

{
    "bundlerOptions": {
        "entryFile": "./src/css/archwizard.scss",
        "outFile": "./dist/archwizard.scss",
        "logLevel": "warning"
    }
}

The error occurs with scss-bundle version ~3.1.2. When using scss-bundle version ~3.0.0, the error does not occur.

To Reproduce Steps to reproduce the behavior:

  1. Clone angular-archwizard using git clone [email protected]:madoar/angular-archwizard.git
  2. Install all necessary dependencies for angular-archwizard using npm i
  3. Build angular-archwizard using npm run build
  4. See error

Expected behavior The build to succeed.

Package version: v3.1.2 Node version: v12.18.4 OS: Linux

madoar avatar Sep 28 '20 18:09 madoar

We had this issue and were able to workaround it by adding the --config option

scss-bundle --config scss-bundle.config.json

It seems since --config is new in 3.1.0 it was accidentally made required.

eternalmatt avatar Apr 20 '21 20:04 eternalmatt