Skip to content
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

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

Open
madoar opened this issue Sep 28, 2020 · 1 comment
Open

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

madoar opened this issue Sep 28, 2020 · 1 comment

Comments

@madoar
Copy link

madoar commented Sep 28, 2020

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

@eternalmatt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants