KIE tools trying to build locally machine.

478 views
Skip to first unread message

Kishan Kumar

unread,
Sep 21, 2023, 8:10:41 AM9/21/23
to Kogito development mailing list
Hi Team,

I am trying to build the KIE tools on my local machine and to run the online editor package on my local machine then getting this error.

I would appreciate it if you could assist me in resolving this issue as soon as possible. Please let me know if there is any additional information you need from me to help resolve this issue.

 pnpm start

> @kie-tools/online...@0.0.0 start E:\GIT\kie-tools\packages\online-editor
> webpack serve --host 0.0.0.0 --env dev

[webpack-cli] Failed to load 'E:\GIT\kie-tools\packages\online-editor\webpack.config.ts' config
[webpack-cli] build/defaultEnvJson.ts:28:27 - error TS2307: Cannot find module '@kie-tools-core/workspaces-git-fs/dist/constants/ExtensionHelper' or its corresponding type declarations.

28 import { FileTypes } from "@kie-tools-core/workspaces-git-fs/dist/constants/ExtensionHelper";
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 ELIFECYCLE  Command failed with exit code 2.

Yeser Amer

unread,
Sep 21, 2023, 8:59:51 AM9/21/23
to kogito-de...@googlegroups.com
Hi Kishan,

please follow the below steps:
  1. Open the terminal in kogito-tools directory
  2. Launch pnpm bootstrap command
  3. Launch pnpm -F @kie-tools/online-editor... build:dev command
  4. Launch pnpm -F @kie-tools/online-editor start command
Regards,

Yeser


Yeser Amer

Partner Engineer

IBM | Red Hat



--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/affcfda4-2174-4008-b1c1-f2f25fbbceb2n%40googlegroups.com.

Kishan Kumar

unread,
Sep 21, 2023, 9:56:28 AM9/21/23
to Kogito development mailing list
Hi Yeser,

Thanks for your reply!

I tried these command then got these are errors.

D:\kie-tools-main\kie-tools-main>pnpm -F @kie-tools/online-editor... build:dev
Scope: 42 of 139 workspace projects
packages/cors-proxy-api build:dev$ rimraf dist && tsc -p tsconfig.json
└─ Done in 8.7s
packages/dmn-language-service build:dev$ rimraf dist && tsc -p tsconfig.json
└─ Done in 10.2s
packages/envelope-bus build:dev$ rimraf dist && tsc -p tsconfig.json && pnpm build:tests
│ > @kie-tools-core/envelo...@0.0.0 build:tests D:\kie-tools-main\kie-tools-main\packages\envelope-bus
│ > rimraf dist-tests && tsc -p tsconfig.tests.json
└─ Done in 23.2s
packages/extended-services build:dev$ rimraf dist jitexecutor && pnpm build-headless && pnpm copy-jitexecutor && pnpm build
│ > @kie-tools/extended...@0.0.0 build-headless D:\kie-tools-main\kie-tools-main\packages\extended-services
│ > pnpm copy-jitexecutor-linux-headless && make linux-headless
│ > @kie-tools/extended...@0.0.0 copy-jitexecutor-linux-headless D:\kie-tools-main\kie-tools-main\packages\extended-services
│ > run-script-os
│ > @kie-tools/extended...@0.0.0 copy-jitexecutor-linux-headless:win32
│ > pnpm powershell "Copy-Item $(build-env extendedServices.jitexecutor.nativeBinaryPath.linux) jitexecutor"
│ 'make' is not recognized as an internal or external command,
│ operable program or batch file.
│  ELIFECYCLE  Command failed with exit code 1.
└─ Failed in 22.4s at D:\kie-tools-main\kie-tools-main\packages\extended-services
packages/i18n build:dev$ rimraf dist && tsc -p tsconfig.json
└─ Done in 11.3s
packages/kie-sandbox-fs build:dev$ rimraf dist && pnpm copy:src
│ > @kie-tools/kie-san...@0.0.0 copy:src D:\kie-tools-main\kie-tools-main\packages\kie-sandbox-fs
│ > copyfiles -u 1 "src/**/*.{js,ts}" dist/
└─ Done in 4.9s
packages/monaco-editor build:dev$ rimraf dist && webpack --mode development
└─ Running...
packages/operating-system build:dev$ rimraf dist && tsc -p tsconfig.json
└─ Running...
D:\kie-tools-main\kie-tools-main\packages\extended-services:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @kie-tools/extended...@0.0.0 build:dev: `rimraf dist jitexecutor && pnpm build-headless && pnpm copy-jitexecutor && pnpm build`
Exit status 1
packages/pmml-editor-marshaller build:dev$ rimraf dist && tsc -p tsconfig.json
└─ Running...
packages/react-hooks build:dev$ rimraf dist && tsc -p tsconfig.json
└─ Running...

D:\kie-tools-main\kie-tools-main>pnpm -F @kie-tools/online-editor start

> @kie-tools/online...@0.0.0 start D:\kie-tools-main\kie-tools-main\packages\online-editor

> webpack serve --host 0.0.0.0 --env dev

[webpack-cli] Failed to load 'D:\kie-tools-main\kie-tools-main\packages\online-editor\webpack.config.ts' config

[webpack-cli] build/defaultEnvJson.ts:28:27 - error TS2307: Cannot find module '@kie-tools-core/workspaces-git-fs/dist/constants/ExtensionHelper' or its corresponding type declarations.

28 import { FileTypes } from "@kie-tools-core/workspaces-git-fs/dist/constants/ExtensionHelper";
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D:\kie-tools-main\kie-tools-main\packages\online-editor:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @kie-tools/online...@0.0.0 start: `webpack serve --host 0.0.0.0 --env dev`
Exit status 2

Kishan Kumar

unread,
Sep 22, 2023, 4:40:04 AM9/22/23
to Kogito development mailing list

Hi  There,

First I cloned the KIE-Tools repo to my local repo but did not clone all the necessary files.

After getting the error then added all the necessary files manually then successfully able to build.

For building the project I am following a README file.

Now I have fixed the build issues but I am getting another error when I am trying to launch the pnpm -F @kie-tools/online-editor start command.

I would appreciate it if you could assist me in resolving this issue as soon as possible.
> @kie-tools/online...@0.0.0 start D:\kie-tools-main\kie-tools-main\packages\online-editor
> webpack serve --host 0.0.0.0 --env dev

Online Editor :: Build info: dev (undefined) @ 2023-09-22T08:23:31.849Z
Extended Services :: Linux download URL: https://github.com/kiegroup/kie-tools/releases/download/0.0.0/kie_sandbox_extended_services_linux_0.0.0.tar.gz
Extended Services :: macOS download URL: https://github.com/kiegroup/kie-tools/releases/download/0.0.0/kie_sandbox_extended_services_macos_0.0.0.dmg
Extended Services :: Windows download URL: https://github.com/kiegroup/kie-tools/releases/download/0.0.0/kie_sandbox_extended_services_windows_0.0.0.exe
Extended Services :: Compatible version: 0.0.0
DMN Dev deployment :: Image pull policy: Always
Google Tag Manager :: ID: undefined
fatal: Needed a single revision
[webpack-cli] Error: Error: Command failed: git rev-parse --short HEAD
fatal: Needed a single revision

    at D:\kie-tools-main\kie-tools-main\packages\online-editor\webpack.config.ts:59:11
    at Generator.next (<anonymous>)
    at D:\kie-tools-main\kie-tools-main\packages\online-editor\webpack.config.ts:31:71
    at new Promise (<anonymous>)
    at __awaiter (D:\kie-tools-main\kie-tools-main\packages\online-editor\webpack.config.ts:27:12)
    at exports.default (D:\kie-tools-main\kie-tools-main\packages\online-editor\webpack.config.ts:43:46)
    at loadConfigByPath (D:\kie-tools-main\kie-tools-main\node_modules\.pnpm\webpa...@4.10.0_webpack-dev-server@4.15.1_...@5.88.2\node_modules\webpack-cli\lib\webpack-cli.js:1439:37)
    at async WebpackCLI.loadConfig (D:\kie-tools-main\kie-tools-main\node_modules\.pnpm\webpa...@4.10.0_webpack-dev-server@4.15.1_...@5.88.2\node_modules\webpack-cli\lib\webpack-cli.js:1510:38)
    at async WebpackCLI.createCompiler (D:\kie-tools-main\kie-tools-main\node_modules\.pnpm\webpa...@4.10.0_webpack-dev-server@4.15.1_...@5.88.2\node_modules\webpack-cli\lib\webpack-cli.js:1785:22)
    at async Command.<anonymous> (D:\kie-tools-main\kie-tools-main\node_modules\.pnpm\@webpack-...@1.7.0_webpack-cli@4.10.0_webpa...@4.15.1\node_modules\@webpack-cli\serve\lib\index.js:105:30)

D:\kie-tools-main\kie-tools-main\packages\online-editor:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @kie-tools/online...@0.0.0 start: `webpack serve --host 0.0.0.0 --env dev`
Exit status 2

Jozef Marko

unread,
Oct 19, 2023, 2:10:28 AM10/19/23
to kogito-de...@googlegroups.com
From this piece of log
=============================

Google Tag Manager :: ID: undefined
fatal: Needed a single revision
[webpack-cli] Error: Error: Command failed: git rev-parse --short HEAD
fatal: Needed a single revision
=============================

I tend to think the issue is in how you cloned the repository. You mention some files you needed to create manually. It shouldn't be required if  the clone is successful.



--
Regards, Jozef
Red Hat Partner Engineer

Kishan Kumar

unread,
Oct 31, 2023, 8:12:13 AM10/31/23
to Kogito development mailing list
Yes, The clone is successful.

Thanks!
Kishan
Reply all
Reply to author
Forward
0 new messages