reactway / scss-bundle

Bundling SCSS files to one bundled file.
MIT License
56 stars 25 forks source link

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

Open madoar opened 4 years ago

madoar commented 4 years ago

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 git@github.com: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

eternalmatt commented 3 years ago

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.