• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Grunt_build FAILED

    Hi, fresh install from source v9.1, when running gradle deploy failing:

    Warning: dist/modules/administrative/job/search.html
    Error: Parse Error: <os-select os-md-input ng-model=“filterOpts.type” list=“types”

    Aborted due to warnings.
    :grunt_build FAILED
    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ‘:grunt_build’.

    Process ‘command ‘grunt’’ finished with non-zero exit value 6

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      BUILD FAILED

    Ubuntu 20.04LTS
    Tomcat 10
    java -v
    openjdk 1.8.0_352
    npm -v
    8.19.2
    node -v
    v16.18.1
    bower -v
    1.8.14
    grunt -version
    v1.5.3
    gradle -v
    v2.9

    /opt/openspecimen/www$ grunt build --force

    Running “htmlmin:dist” (htmlmin) task
    Warning: dist/modules/administrative/job/search.html
    Error: Parse Error: <os-select os-md-input ng-model=“filterOpts.type” list=“types”
    select-prop=“type” display-prop=“caption” class=form-control"
    placeholder="{{‘jobs.type’ | translate}}">

      <os-clear-filters opts="filterOpts"></os-clear-filters>
    </div>
    

    Used --force, continuing. Warning: dist/modules/query/column-filter.html Error: Parse Error: {{col.displayName}}
    {{col.sortPriority}}
    {{col.colDef.summary}}
    Used --force, continuing. Minified 293 files (2 failed)

    Done, but with warnings.

    Hello Brendan,

    Please use the below versions to build the war file.

    1. npm 7.13.0
    2. node v10.9.0
    3. bower 1.8.14
    4. grunt cli 1.2.0

    Please use Tomcat 9.0.70. You can download it from here: Apache Tomcat® - Apache Tomcat 9 Software Downloads

    Please let us know if you have any questions.

    Regards,
    Kaustubh

    Downgraded packages as per suggestion but getting different grunt_build error
    Ubuntu 20.04LTS
    Tomcat 9.0.70
    java -v
    openjdk 1.8.0_352
    npm -v
    7.13.0
    node -v
    v10.9.0
    bower -v
    1.8.14
    grunt -version
    v0.4.5
    grunt-cli v1.2.0
    gradle -v
    v2.9

    Warning: Running "imagemin:dist" (imagemin) task
    Fatal error: write EPIPE Use --force to continue.
        
        Aborted due to warnings.
    :grunt_build FAILED
    

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ‘:grunt_build’.

    Process ‘command ‘grunt’’ finished with non-zero exit value 6

    This post seemed to have helped with fixing the above grunt_build error

    Gradle deploy was successful.
    :create_war
    :build
    :deploy

    BUILD SUCCESSFUL

    Total time: 4 mins 27.481 secs