scss-bundle
scss-bundle copied to clipboard
Build failure: "erro: "entryFile" is not defined."
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:
- Clone
angular-archwizardusinggit clone [email protected]:madoar/angular-archwizard.git - Install all necessary dependencies for
angular-archwizardusingnpm i - Build
angular-archwizardusingnpm run build - See error
Expected behavior The build to succeed.
Package version: v3.1.2 Node version: v12.18.4 OS: Linux
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.