Error when deploy jar

Please help Jmix team and community members to answer your questions:

  • Provide your Jmix framework and Studio versions. Use Welcome screen in Studio to copy versions.
  • If possible, attach a zip-archive with a sample project or provide a link to a GitHub repository with a minimal, reproducible example. Use Gradle → Zip Project action in Jmix tool window to make an archive.
  • Format source code in your posts by wrapping it in triple backquotes (```). Running Jmix enhancer in root project ‘fancys-admin’ for source set ‘main’
    Task :vaadinPrepareFrontend
    Task :processResources
    Task :classes
    Task :vaadinBuildFrontend
    Task :vaadinBuildFrontend FAILED
    FAILURE: Build failed with an exception.
  • What went wrong:
    Execution failed for task ‘:vaadinBuildFrontend’.

Vite process exited with non-zero exit code.
Stderr: 'vite v5.0.6 building for production…
transforming…
frontend/generated/jar-resources/src/input-mask.js (133:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
frontend/generated/jar-resources/src/input-mask.js (149:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/ace-builds/src-noconflict/worker-coffee.js (5474:66): Use of eval in “node_modules/ace-builds/src-noconflict/worker-coffee.js” is strongly discouraged as it poses security risks and may cause issues with minification.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 4m 44s
6 actionable tasks: 6 executed

Hello!

Could you clarify do you use -Pvaadin.productionMode=true in command line? What version of Jmix do you use?

Take a look at deployment section in the docs: Basic Deployment :: Jmix Documentation

Yeah i run by ./gradlew -Pvaadin.productionMode=true bootJar. Jmix version is 2.2.1

is strongly discouraged as it poses security risks and may cause issues with minification.

It looks like a warning. Could provide the full logs? Probably, the problem is somewhere else.

./gradlew -Pvaadin.productionMode=true bootJar

Task :compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Enhancing entities in root project ‘digital-platform’ for source set ‘main’
Project entities:
JPA: [com.company.digitalplatform.entity.DeviceType, com.company.digitalplatform.entity.DailyOrderCount, com.company.digitalplatform.entity.Country, com.company.digitalplatform.entity.Product, com.company.digitalplatform.entity.StockItem, com.company.digitalplatform.entity.ServiceCategory, com.company.digitalplatform.entity.City, com.company.digitalplatform.entity.MeasurementUnit, com.company.digitalplatform.entity.Supplier, com.company.digitalplatform.entity.ProductCategory, com.company.digitalplatform.entity.Shipment, com.company.digitalplatform.entity.User, com.company.digitalplatform.entity.DeviceBrand, com.company.digitalplatform.entity.Order, com.company.digitalplatform.entity.Service, com.company.digitalplatform.entity.Client, com.company.digitalplatform.entity.OrderItem, com.company.digitalplatform.entity.ProductSubcategory, com.company.digitalplatform.entity.ProductPriceHistory, com.company.digitalplatform.entity.StockMovement, com.company.digitalplatform.entity.ServicePriceHistory, com.company.digitalplatform.entity.ServiceSubcategory];
DTO: [com.company.digitalplatform.dto.ServiceWithActivePriceHistoryDTO];
Project converters: [].
Running EclipseLink enhancer in root project ‘digital-platform’ for source set ‘main’
Running Jmix enhancer in root project ‘digital-platform’ for source set ‘main’

Task :vaadinBuildFrontend FAILED

FAILURE: Build failed with an exception.

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

Vite process exited with non-zero exit code.
Stderr: 'vite v5.0.6 building for production…
transforming…
frontend/generated/jar-resources/src/input-mask.js (133:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
frontend/generated/jar-resources/src/input-mask.js (149:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/ace-builds/src-noconflict/worker-coffee.js (5474:66): Use of eval in “node_modules/ace-builds/src-noconflict/worker-coffee.js” is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 1643 modules transformed.
rendering chunks…
computing gzip size…

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 45s
6 actionable tasks: 6 executed

User@DESKTOP-1VA7PBS MINGW64 ~/Documents/GitHub/digital-platform-fullstack (develop)
$ ./gradlew -Pvaadin.productionMode=true bootJar --stacktrace

Task :vaadinBuildFrontend FAILED

FAILURE: Build failed with an exception.

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

Vite process exited with non-zero exit code.
Stderr: 'vite v5.0.6 building for production…
transforming…
frontend/generated/jar-resources/src/input-mask.js (133:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
frontend/generated/jar-resources/src/input-mask.js (149:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/ace-builds/src-noconflict/worker-coffee.js (5474:66): Use of eval in “node_modules/ace-builds/src-noconflict/worker-coffee.js” is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 1643 modules transformed.
rendering chunks…
computing gzip size…

  • Try:

Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:vaadinBuildFrontend’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:148)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:134)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
    at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
    Caused by: java.lang.IllegalStateException: Vite process exited with non-zero exit code.
    Stderr: 'vite v5.0.6 building for production…
    transforming…
    frontend/generated/jar-resources/src/input-mask.js (133:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
    frontend/generated/jar-resources/src/input-mask.js (149:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
    node_modules/ace-builds/src-noconflict/worker-coffee.js (5474:66): Use of eval in “node_modules/ace-builds/src-noconflict/worker-coffee.js” is strongly discouraged as it poses security risks and may cause issues with minification.
    ✓ 1643 modules transformed.
    rendering chunks…
    computing gzip size…

    at com.vaadin.flow.plugin.base.BuildFrontendUtil.runFrontendBuildTool(BuildFrontendUtil.java:488)
    at com.vaadin.flow.plugin.base.BuildFrontendUtil.runVite(BuildFrontendUtil.java:442)
    at com.vaadin.flow.plugin.base.BuildFrontendUtil.runFrontendBuild(BuildFrontendUtil.java:425)
    at com.vaadin.gradle.VaadinBuildFrontendTask.vaadinBuildFrontend(VaadinBuildFrontendTask.kt:80)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
    at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:247)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
    at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:232)
    at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:215)
    at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:198)
    at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:165)
    at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
    at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
    at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
    at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
    at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
    at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
    at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
    at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
    at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
    at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
    at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
    at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:64)
    at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:42)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
    at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
    at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
    at org.gradle.internal.Either$Right.fold(Either.java:175)
    at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
    at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
    at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
    at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)
    at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:76)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:54)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:76)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:37)
    at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:106)
    at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55)
    at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64)
    at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43)
    at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125)
    at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56)
    at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
    at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
    at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
    at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75)
    at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41)
    at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35)
    at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:292)
    at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31)
    at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22)
    at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
    at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
    at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:66)
    at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:66)
    at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:38)
    at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:36)
    at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:26)
    at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:47)
    at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:34)
    at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:134)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
    at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
    Caused by: org.zeroturnaround.exec.InvalidExitValueException: Unexpected exit value: 1, allowed exit values: [0], executed command [C:\Program Files (x86)\nodejs\node.exe, C:\Users\User\Documents\GitHub\digital-platform-fullstack\node_modules\vite\bin\vite.js, build] in directory C:\Users\User\Documents\GitHub\digital-platform-fullstack with environment {USERDOMAIN_ROAMINGPROFILE=DESKTOP-1VA7PBS, PATH=C:\Program Files (x86)\nodejs;C:\Users\User\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\User\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Maven\apache-maven-3.9.5\bin;C:\Program Files\Git\cmd;C:\Program Files\PuTTY;C:\Program Files\dotnet;C:\Program Files (x86)\nodejs;C:\Users\User\AppData\Local\pnpm;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Users\User\AppData\Local\GitHubDesktop\bin;C:\Users\User\AppData\Roaming\npm;C:\Users\User.dotnet\tools;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl, PKG_CONFIG_PATH=C:\Program Files\Git\mingw64\lib\pkgconfig;C:\Program Files\Git\mingw64\share\pkgconfig, PROCESSOR_LEVEL=6, MSYSTEM_PREFIX=C:/Program Files/Git/mingw64, SYSTEMDRIVE=C:, CONFIG_SITE=C:/Program Files/Git/etc/config.site, SESSIONNAME=Console, ALLUSERSPROFILE=C:\ProgramData, PROCESSOR_ARCHITECTURE=AMD64, PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules, MSYSTEM_CHOST=x86_64-w64-mingw32, PNPM_HOME=C:\Users\User\AppData\Local\pnpm, MAVEN_HOME=C:\Program Files\Maven\apache-maven-3.9.5, ORIGINAL_TEMP=C:/Users/User/AppData/Local/Temp, PROGRAMFILES=C:\Program Files, USERNAME=User, PWD=C:/Users/User/Documents/GitHub/digital-platform-fullstack, TERM_PROGRAM_VERSION=3.6.4, ProgramFiles(x86)=C:\Program Files (x86), INFOPATH=C:\Program Files\Git\mingw64\local\info;C:\Program Files\Git\mingw64\share\info;C:\Program Files\Git\usr\local\info;C:\Program Files\Git\usr\share\info;C:\Program Files\Git\usr\info;C:\Program Files\Git\share\info, PKG_CONFIG_SYSTEM_INCLUDE_PATH=C:/Program Files/Git/mingw64/include, FPS_BROWSER_USER_PROFILE_STRING=Default, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, SHELL=C:\Program Files\Git\usr\bin\bash.exe, DriverData=C:\Windows\System32\Drivers\DriverData, ORIGINAL_TMP=C:/Users/User/AppData/Local/Temp, TMPDIR=C:\Users\User\AppData\Local\Temp, WINDIR=C:\WINDOWS, ProgramData=C:\ProgramData, ProgramW6432=C:\Program Files, SSH_ASKPASS=C:/Program Files/Git/mingw64/bin/git-askpass.exe, __PSLockDownPolicy=0, HOMEPATH=\Users\User, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 183 Stepping 1, GenuineIntel, PUBLIC=C:\Users\Public, MINGW_CHOST=x86_64-w64-mingw32, LC_CTYPE=ru_RU.UTF-8, =::=::, EXEPATH=C:\Program Files\Git, SHLVL=1, ZES_ENABLE_SYSMAN=1, IGCCSVC_DB=AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAd8DVicbhwUGvI7guls8B8wQAAAACAAAAAAAQZgAAAAEAACAAAAAZRAj2HYi6QJzhf9vp3Ehd1jVmsyEzrn3WgkBr7juhgwAAAAAOgAAAAAIAACAAAAClXLDpIlWtiPuL1dnRJZ2M4KcTZ9947UvvBLn/Ya08lmAAAABKkuNl6JWh3KTl3JgmnVl07n2OUk/vlFnqMkDwYHR7sx59SYVwflf+UJgo/gnSQS7q71+RTxE2yEJVAmuTXOP66lmrOUo8cAdXJwhdu40ts3yXD0nvO8y6zYXoPixyBHNAAAAAhysNf66dK/mIyyubeQqveXB7DpUNXm7STzXKpd0A5OydA0mbS41rTMWpbgy56dVWaz+09wLDGUdnVaAB4D/TMw==, LOCALAPPDATA=C:\Users\User\AppData\Local, ORIGINAL_PATH=C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\User\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Maven\apache-maven-3.9.5\bin;C:\Program Files\Git\cmd;C:\Program Files\PuTTY;C:\Program Files\dotnet;C:\Program Files (x86)\nodejs;C:\Users\User\AppData\Local\pnpm;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Users\User\AppData\Local\GitHubDesktop\bin;C:\Users\User\AppData\Roaming\npm;C:\Users\User.dotnet\tools, MANPATH=C:\Program Files\Git\mingw64\local\man;C:\Program Files\Git\mingw64\share\man;C:\Program Files\Git\usr\local\man;C:\Program Files\Git\usr\share\man;C:\Program Files\Git\usr\man;C:\Program Files\Git\share\man, MINGW_PACKAGE_PREFIX=mingw-w64-x86_64, EFC_18480=1, USERDOMAIN=DESKTOP-1VA7PBS, FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer, LOGONSERVER=\DESKTOP-1VA7PBS, JAVA_HOME=C:\Program Files\Java\jdk-21, PLINK_PROTOCOL=ssh, TERM=xterm, MINGW_PREFIX=C:/Program Files/Git/mingw64, DISPLAY=needs-to-be-defined, OneDrive=C:\Users\User\OneDrive, MSYSTEM=MINGW64, APPDATA=C:\Users\User\AppData\Roaming, SYSTEMROOT=C:\WINDOWS, OS=Windows_NT, MSYS=disable_pcon, TERM_PROGRAM=mintty, COMPUTERNAME=DESKTOP-1VA7PBS, COMMONPROGRAMFILES=C:\Program Files\Common Files, COMSPEC=C:\WINDOWS\system32\cmd.exe, PROCESSOR_REVISION=b701, CommonProgramW6432=C:\Program Files\Common Files, ACLOCAL_PATH=C:\Program Files\Git\mingw64\share\aclocal;C:\Program Files\Git\usr\share\aclocal, MSYSTEM_CARCH=x86_64, TEMP=C:\Users\User\AppData\Local\Temp, HOSTNAME=DESKTOP-1VA7PBS, HOMEDRIVE=C:, USERPROFILE=C:\Users\User, TMP=C:\Users\User\AppData\Local\Temp, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, NUMBER_OF_PROCESSORS=24, HOME=C:\Users\User, PKG_CONFIG_SYSTEM_LIBRARY_PATH=C:/Program Files/Git/mingw64/lib}, output was 829 bytes:
    [36mvite v5.0.6 building for production…
    transforming…
    frontend/generated/jar-resources/src/input-mask.js (133:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
    frontend/generated/jar-resources/src/input-mask.js (149:10): Use of eval in “frontend/generated/jar-resources/src/input-mask.js” is strongly discouraged as it poses security risks and may cause issues with minification.
    node_modules/ace-builds/src-noconflict/worker-coffee.js (5474:66): Use of eval in “node_modules/ace-builds/src-noconflict/worker-coffee.js” is strongly discouraged as it poses security risks and may cause issues with minification.
    ✓ 1643 modules transformed.
    rendering chunks…
    computing gzip size…
    at org.zeroturnaround.exec.InvalidExitUtil.checkExit(InvalidExitUtil.java:27)
    at org.zeroturnaround.exec.WaitForProcess.call(WaitForProcess.java:114)
    at org.zeroturnaround.exec.ProcessExecutor.waitFor(ProcessExecutor.java:1076)
    at org.zeroturnaround.exec.ProcessExecutor.execute(ProcessExecutor.java:906)
    at com.vaadin.flow.plugin.base.BuildFrontendUtil.runFrontendBuildTool(BuildFrontendUtil.java:486)
    … 122 more

BUILD FAILED in 40s
6 actionable tasks: 4 executed, 2 up-to-date
@pinyazhin

Hello!
I have the same error.
Initially, I thought I had done something wrong with the project settings. So I created a new project, copied all the code, and the error disappeared, the application was able to build.

But after some time (the project itself was not changed) the error came back again. And now I can’t build the project again.