I am having error using the motoko llm on icp ninja due to a mops dependency error

I am having error using the Motoko LLM on icp ninja due to a mops dependency error.

.mops/base@0.15.1/src/Array.mo:66.10-66.27: type error [M0072], field Array_tabulateVar does not exist in module.

Building and deploying code onchain:

Build started, waiting for completion

Build failed: Building canister 'integralforce_backend'.Building canister 'integralforce_frontend'.Error: Failed while trying to build all canisters.Caused by: The build step failed for canister '6miua-xaaaa-aaaas-qaahq-cai' (integralforce_backend)Caused by: Failed to build Motoko canister 'integralforce_backend'.Caused by: Failed to compile Motoko.Caused by: Failed to run 'moc'.Caused by: The command 'cd "/workdir" && "/home/ubuntu/.cache/dfinity/versions/0.27.0/moc" "/workdir/src/integralforce_backend/main.mo" "-o" "/workdir/.dfx/ic/canisters/integralforce_backend/integralforce_backend.wasm" "-c" "--debug" "--idl" "--stable-types" "--public-metadata" "candid:service" "--public-metadata" "candid:args" "--actor-idl" "/workdir/.dfx/ic/canisters/idl/" "--actor-alias" "integralforce_backend" "6miua-xaaaa-aaaas-qaahq-cai" "--actor-alias" "integralforce_frontend" "6ljsu-2yaaa-aaaas-qaaha-cai" "--actor-alias" "internet_identity" "rdmx6-jaaaa-aaaaa-aaadq-cai" "--package" "base" ".mops/base@0.15.1/src" "--package" "llm" ".mops/llm@2.1.0/src"' failed with exit status 'exit status: 1'.Stdout:Stderr:.mops/base@0.15.1/src/Array.mo:66.10-66.27: type error [M0072], field Array_tabulateVar does not exist in module.Did you mean field Array_tabulate?.mops/base@0.15.1/src/Array.mo:95.53-95.70: type error [M0072], field Array_tabulateVar does not exist in module.Did you mean field Array_tabulate?

Building and deploying code onchain:

Build started, waiting for completion

Build failed: Building canister 'integralforce_backend'.Building canister 'integralforce_frontend'.Error: Failed while trying to build all canisters.Caused by: The build step failed for canister '6miua-xaaaa-aaaas-qaahq-cai' (integralforce_backend)Caused by: Failed to build Motoko canister 'integralforce_backend'.Caused by: Failed to compile Motoko.Caused by: Failed to run 'moc'.Caused by: The command 'cd "/workdir" && "/home/ubuntu/.cache/dfinity/versions/0.27.0/moc" "/workdir/src/integralforce_backend/main.mo" "-o" "/workdir/.dfx/ic/canisters/integralforce_backend/integralforce_backend.wasm" "-c" "--debug" "--idl" "--stable-types" "--public-metadata" "candid:service" "--public-metadata" "candid:args" "--actor-idl" "/workdir/.dfx/ic/canisters/idl/" "--actor-alias" "integralforce_backend" "6miua-xaaaa-aaaas-qaahq-cai" "--actor-alias" "integralforce_frontend" "6ljsu-2yaaa-aaaas-qaaha-cai" "--actor-alias" "internet_identity" "rdmx6-jaaaa-aaaaa-aaadq-cai" "--package" "base" ".mops/base@0.15.1/src" "--package" "llm" ".mops/llm@2.1.0/src"' failed with exit status 'exit status: 1'.Stdout:Stderr:.mops/base@0.15.1/src/Array.mo:66.10-66.27: type error [M0072], field Array_tabulateVar does not exist in module.Did you mean field Array_tabulate?.mops/base@0.15.1/src/Array.mo:95.53-95.70: type error [M0072], field Array_tabulateVar does not exist in module.Did you mean field Array_tabulate?

So it’s not a great error message but long story short, you should downgrade your base version to 0.14.9

From what I learned about ICP ninja, it doesn’t have the latest versions for motoko and DFX and until it’s upgraded, the latest version of bass won’t work

Thank you so much, it works :folded_hands: