patnorris / DecentralizedAIonIC

DeVinci is the browser-based AI chatbot app served from the Internet Computer. You can chat with the AI model loaded into your browser so your chats remain fully on your device. If you choose to log in, you can also store your chats on the Internet Computer and reload them later.
https://devinci.onicai.com/
Apache License 2.0
17 stars 14 forks source link

I have an issue working on a Motoko GitHub project, the dependencies are conflicting #43

Closed devAbdulsalam closed 2 months ago

devAbdulsalam commented 2 months ago

Whenever I tried to install the packages it not working, this is the error message:

The GitHub link are:

https://github.com/patnorris/decentralizedaionic

or

https://github.com/KnowledgeFound/Hackathon202409

npm install --force
npm warn using --force Recommended protections disabled.
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @dfinity/auth-client@0.15.7
npm warn Found: @dfinity/agent@0.15.1
npm warn node_modules/@dfinity/agent
npm warn   @dfinity/agent@"0.15.1" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peer @dfinity/agent@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn node_modules/@dfinity/auth-client
npm warn   @dfinity/auth-client@"^0.15.1" from the root project
npm warn
npm warn Conflicting peer dependency: @dfinity/agent@0.15.7
npm warn node_modules/@dfinity/agent
npm warn   peer @dfinity/agent@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn   node_modules/@dfinity/auth-client
npm warn     @dfinity/auth-client@"^0.15.1" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @dfinity/auth-client@0.15.7
npm warn Found: @dfinity/principal@0.15.1
npm warn node_modules/@dfinity/principal
npm warn   @dfinity/principal@"0.15.1" from the root project
npm warn   1 more (@dfinity/agent)
npm warn
npm warn Could not resolve dependency:
npm warn peer @dfinity/principal@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn node_modules/@dfinity/auth-client
npm warn   @dfinity/auth-client@"^0.15.1" from the root project
npm warn
npm warn Conflicting peer dependency: @dfinity/principal@0.15.7
npm warn node_modules/@dfinity/principal
npm warn   peer @dfinity/principal@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn   node_modules/@dfinity/auth-client
npm warn     @dfinity/auth-client@"^0.15.1" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @dfinity/identity@0.15.7
npm warn Found: @dfinity/agent@0.15.1
npm warn node_modules/@dfinity/agent
npm warn   @dfinity/agent@"0.15.1" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peer @dfinity/agent@"^0.15.7" from @dfinity/identity@0.15.7
npm warn node_modules/@dfinity/identity
npm warn   peer @dfinity/identity@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn   node_modules/@dfinity/auth-client
npm warn   1 more (@dfinity/authentication)
npm warn
npm warn Conflicting peer dependency: @dfinity/agent@0.15.7
npm warn node_modules/@dfinity/agent
npm warn   peer @dfinity/agent@"^0.15.7" from @dfinity/identity@0.15.7
npm warn   node_modules/@dfinity/identity
npm warn     peer @dfinity/identity@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn     node_modules/@dfinity/auth-client
npm warn     1 more (@dfinity/authentication)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @dfinity/identity@0.15.7
npm warn Found: @dfinity/principal@0.15.1
npm warn node_modules/@dfinity/principal
npm warn   @dfinity/principal@"0.15.1" from the root project
npm warn   1 more (@dfinity/agent)
npm warn
npm warn Could not resolve dependency:
npm warn peer @dfinity/principal@"^0.15.7" from @dfinity/identity@0.15.7
npm warn node_modules/@dfinity/identity
npm warn   peer @dfinity/identity@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn   node_modules/@dfinity/auth-client
npm warn   1 more (@dfinity/authentication)
npm warn
npm warn Conflicting peer dependency: @dfinity/principal@0.15.7
npm warn node_modules/@dfinity/principal
npm warn   peer @dfinity/principal@"^0.15.7" from @dfinity/identity@0.15.7
npm warn   node_modules/@dfinity/identity
npm warn     peer @dfinity/identity@"^0.15.7" from @dfinity/auth-client@0.15.7
npm warn     node_modules/@dfinity/auth-client
npm warn     1 more (@dfinity/authentication)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @tensorflow-models/universal-sentence-encoder@1.3.3
npm warn Found: @tensorflow/tfjs-converter@4.15.0
npm warn node_modules/@tensorflow/tfjs-converter
npm warn   @tensorflow/tfjs-converter@"4.15.0" from the root project
npm warn   1 more (langchain)
npm warn
npm warn Could not resolve dependency:
npm warn peer @tensorflow/tfjs-converter@"^3.6.0" from @tensorflow-models/universal-sentence-encoder@1.3.3
npm warn node_modules/@tensorflow-models/universal-sentence-encoder
npm warn   @tensorflow-models/universal-sentence-encoder@"1.3.3" from the root project
npm warn   1 more (langchain)
npm warn
npm warn Conflicting peer dependency: @tensorflow/tfjs-converter@3.21.0
npm warn node_modules/@tensorflow/tfjs-converter
npm warn   peer @tensorflow/tfjs-converter@"^3.6.0" from @tensorflow-models/universal-sentence-encoder@1.3.3
npm warn   node_modules/@tensorflow-models/universal-sentence-encoder
npm warn     @tensorflow-models/universal-sentence-encoder@"1.3.3" from the root project
npm warn     1 more (langchain)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @tensorflow-models/universal-sentence-encoder@1.3.3
npm warn Found: @tensorflow/tfjs-core@4.15.0
npm warn node_modules/@tensorflow/tfjs-core
npm warn   @tensorflow/tfjs-core@"4.15.0" from the root project
npm warn   4 more (@tensorflow/tfjs-backend-cpu, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer @tensorflow/tfjs-core@"^3.6.0" from @tensorflow-models/universal-sentence-encoder@1.3.3
npm warn node_modules/@tensorflow-models/universal-sentence-encoder
npm warn   @tensorflow-models/universal-sentence-encoder@"1.3.3" from the root project
npm warn   1 more (langchain)
npm warn
npm warn Conflicting peer dependency: @tensorflow/tfjs-core@3.21.0
npm warn node_modules/@tensorflow/tfjs-core
npm warn   peer @tensorflow/tfjs-core@"^3.6.0" from @tensorflow-models/universal-sentence-encoder@1.3.3
npm warn   node_modules/@tensorflow-models/universal-sentence-encoder
npm warn     @tensorflow-models/universal-sentence-encoder@"1.3.3" from the root project
npm warn     1 more (langchain)

up to date, audited 742 packages in 2m

131 packages are looking for funding
  run `npm fund` for details

6 vulnerabilities (1 low, 4 moderate, 1 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
lopezi commented 2 months ago

This is likely a dependencies mismatch that you had previously installed on your machine. Try installing @dfinity/principal@0.15.7 instead and downgrading TensorFlow packages to versions compatible with ^3.6.0

devAbdulsalam commented 2 months ago

it's still giving the same error messages

lopezi commented 2 months ago

Please paste the current error messages. Have you addressed the package version compatibility?

devAbdulsalam commented 2 months ago

I would love to get a one-on-one 30-minute session with you on Google Meet.

I'm still having the same error, I'm unable to access the frontend canister.

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @dfinity/auth-client@0.15.7
npm error Found: @dfinity/agent@0.15.1
npm error node_modules/@dfinity/agent
npm error   @dfinity/agent@"0.15.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @dfinity/agent@"^0.15.7" from @dfinity/auth-client@0.15.7
npm error node_modules/@dfinity/auth-client
npm error   @dfinity/auth-client@"^0.15.1" from the root project
npm error
npm error Conflicting peer dependency: @dfinity/agent@0.15.7
npm error node_modules/@dfinity/agent
npm error   peer @dfinity/agent@"^0.15.7" from @dfinity/auth-client@0.15.7
npm error   node_modules/@dfinity/auth-client
npm error     @dfinity/auth-client@"^0.15.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/abdulsalam/.npm/_logs/2024-09-17T08_08_42_116Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/abdulsalam/.npm/_logs/2024-09-17T08_08_42_116Z-debug-0.log
devAbdulsalam commented 2 months ago

for the frontend canister

Deploying: DeVinci_backend DeVinci_frontend
All canisters have already been created.
Building canisters...
WARN: /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/EXT/Stoic.mo:27.30-27.42: warning [M0154], field append is deprecated:
Array.append has critical performance flaws; use a Buffer, and Buffer.append, instead.
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/EXT/Stoic.mo:42.34-42.46: warning [M0154], field append is deprecated:
Array.append has critical performance flaws; use a Buffer, and Buffer.append, instead.
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/EXT/Stoic.mo:44.37-44.49: warning [M0154], field append is deprecated:
Array.append has critical performance flaws; use a Buffer, and Buffer.append, instead.
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/EXT/Stoic.mo:16.13-16.22: warning [M0194], unused identifier principal (delete or rename to wildcard `_` or `_principal`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/Protocol.mo:8.13-8.24: warning [M0194], unused identifier mainSetting (delete or rename to wildcard `_` or `_mainSetting`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:6.8-6.13: warning [M0194], unused identifier Nat16 (delete or rename to wildcard `_` or `_Nat16`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:12.8-12.17: warning [M0194], unused identifier AssocList (delete or rename to wildcard `_` or `_AssocList`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:13.8-13.14: warning [M0194], unused identifier Buffer (delete or rename to wildcard `_` or `_Buffer`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:14.8-14.14: warning [M0194], unused identifier Random (delete or rename to wildcard `_` or `_Random`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:15.8-15.14: warning [M0194], unused identifier RBTree (delete or rename to wildcard `_` or `_RBTree`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:17.8-17.13: warning [M0194], unused identifier Array (delete or rename to wildcard `_` or `_Array`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:19.8-19.17: warning [M0194], unused identifier FileTypes (delete or rename to wildcard `_` or `_FileTypes`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:23.8-23.12: warning [M0194], unused identifier HTTP (delete or rename to wildcard `_` or `_HTTP`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:25.8-25.13: warning [M0194], unused identifier Stoic (delete or rename to wildcard `_` or `_Stoic`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:27.8-27.16: warning [M0194], unused identifier Protocol (delete or rename to wildcard `_` or `_Protocol`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:28.8-28.16: warning [M0194], unused identifier Testable (delete or rename to wildcard `_` or `_Testable`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:29.8-29.12: warning [M0194], unused identifier Blob (delete or rename to wildcard `_` or `_Blob`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:42.7-42.19: warning [M0194], unused identifier null_address (delete or rename to wildcard `_` or `_null_address`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:45.8-45.17: warning [M0194], unused identifier textToNat (delete or rename to wildcard `_` or `_textToNat`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:59.8-59.19: warning [M0194], unused identifier textToNat64 (delete or rename to wildcard `_` or `_textToNat64`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:177.9-177.20: warning [M0194], unused identifier chatCreated (delete or rename to wildcard `_` or `_chatCreated`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:303.13-303.35: warning [M0194], unused identifier userChatDeletionResult (delete or rename to wildcard `_` or `_userChatDeletionResult`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:304.13-304.31: warning [M0194], unused identifier chatDeletionResult (delete or rename to wildcard `_` or `_chatDeletionResult`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:403.14-403.27: warning [M0194], unused identifier memoryVectors (delete or rename to wildcard `_` or `_memoryVectors`)
/home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_backend/main.mo:505.25-505.31: warning [M0198], unused field caller in object pattern (delete or rewrite as `caller = _`)

Building frontend...
WARN: Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
10:27:14 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/pages/UserSettings.svelte:125:19 A11y: '#' is not a valid href attribute
123:                   <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
124:                 </svg>
125:                 <a href="#" class="cursor-not-allowed text-gray-400 ms-1 text-sm font-medium">Settings</a>
                        ^
126:               </div>
127:             </li>
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/SelectExperience.svelte:6:11 SelectExperience has unused export property 'onlyShowDownloadedModels'. If it is for external reference only, please consider using `export const onlyShowDownloadedModels`
4: import { getAvailableAiModels } from "../helpers/ai_model_helpers";
5: import { userHasDownloadedModel } from "../helpers/localStorage";
6: export let onlyShowDownloadedModels = false;
              ^
7: export let autoInitiateSelectedModel = false;
8: // Reactive statement to check if the user has already downloaded at least one AI model
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/SelectExperience.svelte:7:11 SelectExperience has unused export property 'autoInitiateSelectedModel'. If it is for external reference only, please consider using `export const autoInitiateSelectedModel`
 5: import { userHasDownloadedModel } from "../helpers/localStorage";
 6: export let onlyShowDownloadedModels = false;
 7: export let autoInitiateSelectedModel = false;
               ^
 8: // Reactive statement to check if the user has already downloaded at least one AI model
 9: $: userHasDownloadedAtLeastOneModel = userHasDownloadedModel();
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/InternetIdentityButton.svelte:15:0 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
13: </script>
14: 
15: <a
    ^
16:   class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
17:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/InternetIdentityButton.svelte:15:0 A11y: <a> element should have an href attribute
13: </script>
14: 
15: <a
    ^
16:   class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
17:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/NfidButton.svelte:15:0 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
13: </script>
14: 
15: <a
    ^
16:   class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
17:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/NfidButton.svelte:15:0 A11y: <a> element should have an href attribute
13: </script>
14: 
15: <a
    ^
16:   class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
17:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/BitfinityButton.svelte:14:0 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
12: </script>
13: 
14: <a
    ^
15: class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
16:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/BitfinityButton.svelte:14:0 A11y: <a> element should have an href attribute
12: </script>
13: 
14: <a
    ^
15: class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
16:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/PlugButton.svelte:14:0 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
12: </script>
13: 
14: <a
    ^
15:   class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
16:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/PlugButton.svelte:14:0 A11y: <a> element should have an href attribute
12: </script>
13: 
14: <a
    ^
15:   class="flex items-center p-3 text-base font-bold text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 group hover:shadow cursor-pointer"
16:   on:click={connect}
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/pages/About.svelte:79:23 A11y: '#' is not a valid href attribute
77:                       <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
78:                     </svg>
79:                     <a href="#" class="cursor-not-allowed text-gray-400 ms-1 text-sm font-medium">About</a>
                           ^
80:                   </div>
81:                 </li>
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/pages/About.svelte:91:14 A11y: Screenreaders already announce <img> elements as an image.
89:               This event is part of a new 3-year series of United Nations Office on Drugs and Crime (UNODC) Coding4Integrity hackathons made possible through the partnership of UNODC, the United Nations Global Resource for Anti-Corruption Education and Youth Empowerment (GRACE) Initiative, Knowledge Foundation and DFINITY Foundation.
90:               </p>
91:               <img src="https://knowledgefound.org/images/2024/2024-South-Africa-hackathon-539-Participants-and-39-Countries-poster.jpg" alt="hack image" class="w-full">
                  ^
92: 
93:             </div>
10:27:15 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/pages/About.svelte:99:21 A11y: '#' is not a valid href attribute
 97:                 <img class="mr-4 w-16 h-16 rounded-full" src={devincilogo} alt="deVinci logo">
 98:                 <div>
 99:                   <a href="#" rel="author" class="text-xl font-bold text-gray-900 dark:text-white">deVinci</a>
                          ^
100:                   <p class="text-base text-gray-500 dark:text-gray-400"> Powered by <a href='https://www.onicai.com/' target='_blank' rel="noreferrer" class='underline'>onicai</a> and hosted on <a href='https://internetcomputer.org/' target='_blank' rel="noreferrer" class='underline'>Internet Computer</a>
101:                   </p>
10:27:16 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/pages/Brand.svelte:80:23 A11y: '#' is not a valid href attribute
78:                       <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
79:                     </svg>
80:                     <a href="#" class="cursor-not-allowed text-gray-400 ms-1 text-sm font-medium">Brand</a>
                           ^
81:                   </div>
82:                 </li>
10:27:16 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/SidebarHeader.svelte:53:7 Unused CSS selector ".group:hover .delete-btn"
51: </div>
52: 
53: <style>.group:hover .delete-btn{display:flex}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.rotating-image{animation:rotate 360s linear infinite;border-radius:50%;height:64px;padding:0;width:64px}.tooltip-toggle{cursor:pointer;position:relative}.tooltip-toggle:before{background-color:#2b222a;border-radius:5px;color:#fff;content:attr(aria-label);left:0;padding:.7rem;position:absolute;text-transform:none;top:-60px;transition:all .5s ease;width:140px}.tooltip-toggle:after{content:" ";font-size:0;left:9px;line-height:0;margin-left:-5px;position:absolute;top:-12px;width:0}.tooltip-toggle:after,.tooltip-toggle:before{color:#efefef;font-family:monospace;font-size:12px;opacity:0;pointer-events:none;text-align:center}.tooltip-toggle:focus:after,.tooltip-toggle:focus:before,.tooltip-toggle:hover:after,.tooltip-toggle:hover:before{opacity:1;transition:all .75s ease}</style>
           ^
54: 
10:27:16 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/SelectModelOption.svelte:22:13 SelectModelOption has unused export property 'title'. If it is for external reference only, please consider using `export const title`
20:   export let name;
21:   export let value;
22:   export let title;
                 ^
23:   export let parameters;
24:   export let performance;
10:27:16 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/SelectExperienceOption.svelte:33:13 SelectExperienceOption has unused export property 'databaseToInclude'. If it is for external reference only, please consider using `export const databaseToInclude`
31:   export let experienceType;
32:   export let aiModelIdentifier;
33:   export let databaseToInclude;
                 ^
34:   export let databaseIdentifier;
35: 
10:27:16 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/SelectExperienceOption.svelte:34:13 SelectExperienceOption has unused export property 'databaseIdentifier'. If it is for external reference only, please consider using `export const databaseIdentifier`
32:   export let aiModelIdentifier;
33:   export let databaseToInclude;
34:   export let databaseIdentifier;
                 ^
35: 
36:   // Reactive statement to check if the ID is included in the already downloaded model IDs
10:27:16 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/SelectExperienceOption.svelte:329:146 Unused CSS selector ".animate-bgMove"
327: </div>
328: 
329: <style>.performance-span{transition:background-color 3.3s ease-in-out}@keyframes bgMove{0%{background-position:0 0}to{background-position:200% 0}}.animate-bgMove{animation:bgMove 2s linear infinite;background-size:200% 100%}</style>
                                                                                                                                                       ^
330: 
10:27:17 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/ChatHistory.svelte:81:13 A11y: 'javascript:;' is not a valid href attribute
79:       {#each chats as chat (chat.id)}
80:         <li class="relative group rounded-xl hover:bg-slate-100">
81:           <a href="javascript:;" on:click={() => handleChatClick(chat)} class="truncate rounded-xl hover:bg-slate-100 flex flex-row items-center text-xs p-1.5 text-gray-500 w-full">
                 ^
82:             {chat.firstMessagePreview.substring(0, 100)}
83:           </a>
10:27:18 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/ChatBox.svelte:275:46 A11y: Avoid using autofocus
273:       {/if}
274:       {#if !$chatModelIdInitiatedGlobal || messageGenerationInProgress}
275:         <input disabled type="text" id="chat" autofocus class="block mx-4 p-3 w-full text-sm text-gray-900 bg-white rounded-lg border border-gray-300 focus:ring-2 focus:outline-none focus:ring-[#24292F]/50 " />
                                                   ^
276:         <button disabled type="submit" class="opacity-55 cursor-not-allowed inline-flex justify-center p-2 text-gray-600 rounded-full">
277:           <svg class="w-5 h-5 rotate-0 rtl:-rotate-90" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 20">
10:27:18 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/ChatBox.svelte:283:97 A11y: Avoid using autofocus
281:         </button>
282:       {:else}
283:         <input bind:value={newMessageText} on:keydown={handleInputKeyDown} type="text" id="chat" autofocus class="block mx-4 p-3 w-full text-sm text-gray-900 bg-white rounded-lg border border-gray-300 focus:ring-2 focus:outline-none focus:ring-[#24292F]/50 " placeholder="Message deVinci..." />
                                                                                                      ^
284:         <button class:has-text={newMessageText.length > 1}  type="submit" on:click={() => {sendMessage()}} class="inline-flex justify-center p-2 text-gray-600 rounded-full cursor-pointer hover:bg-gray-100">
285:           <svg class="w-5 h-5 rotate-0 rtl:-rotate-90" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 20">
10:27:20 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/StartUpChatPanel.svelte:18:6 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
16:     <img src={devincilogo} class="rotating-image w-16 h-16 p-0 m-8 rounded-full" alt="devinci logo" />
17:     <div class="grid grid-cols-1 gap-4 sm:grid-cols-4 w-full">
18:       <div class="text-[#151b1e] bg-gray-100 border-2 border-dotted border-[#f9c490] rounded-lg cursor-pointer"
          ^
19:            on:click={() => sendMessage(samplePrompt1)}>
20:         <div class="inline-flex items-center justify-between w-full p-3">
10:27:20 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/StartUpChatPanel.svelte:24:6 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
22:         </div>
23:       </div>
24:       <div class="text-[#151b1e] bg-gray-100 border-2 border-dotted border-[#a1c490] rounded-lg cursor-pointer"
          ^
25:            on:click={() => sendMessage(samplePrompt2)}>
26:         <div class="inline-flex items-center justify-between w-full p-3">
10:27:20 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/StartUpChatPanel.svelte:30:6 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
28:         </div>
29:       </div>
30:       <div class="text-[#151b1e] bg-gray-100 border-2 border-dotted border-[#f0e68c] rounded-lg cursor-pointer"
          ^
31:            on:click={() => sendMessage(samplePrompt3)}>
32:         <div class="inline-flex items-center justify-between w-full p-3">
10:27:20 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/StartUpChatPanel.svelte:36:6 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
34:         </div>
35:       </div>
36:       <div class="text-[#151b1e] bg-gray-100 border-2 border-dotted border-[#cb8bd0] rounded-lg cursor-pointer"
          ^
37:            on:click={() => sendMessage(samplePrompt4)}>
38:         <div class="inline-flex items-center justify-between w-full p-3">
10:27:22 AM [vite-plugin-svelte] /home/abdulsalam/Desktop/Hackathon202409-master/src/DeVinci_frontend/components/ChatBubbleDeVinci.svelte:26:4 A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.
24:     </p>
25:     <!-- Copy icon -->
26:     <span class="text-sm cursor-pointer font-normal text-gray-500 ml-auto " on:click={() => copyToClipboard(messageContent)}>
        ^
27:       <svg xmlns="http://www.w3.org/2000/svg" class="h-7 hover:text-gray-200 hover:bg-gray-200 p-1.5 rounded-full" viewBox="0 -960 960 960" fill="#5f6368"><path d="M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"/></svg>
28:     </span>
node_modules/js-sha256/src/sha256.js (83:17) Use of eval in "node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/js-sha256/src/sha256.js (84:17) Use of eval in "node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification.

(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.

Installing canisters...
Upgrading code for canister DeVinci_backend, with canister ID bkyz2-fmaaa-aaaaa-qaaaq-cai
Module hash 95d6c7591e1d89a1662e7c76d71d9abd98ddeb87c48540103ad1bcd517cf453b is already installed.
Installing code for canister DeVinci_frontend, with canister ID bd3sg-teaaa-aaaaa-qaaba-cai
Uploading assets to asset canister...
WARN: This project does not define a security policy for some assets.
WARN: You should define a security policy in .ic-assets.json5. For example:
WARN: [
WARN:   {
WARN:     "match": "**/*",
WARN:     "security_policy": "standard"
WARN:   }
WARN: ]
WARN: Assets without any security policy: all
WARN: To disable the policy warning, define "disable_security_policy_warning": true in .ic-assets.json5.
WARN: This project does not define a security policy for some assets.
WARN: You should define a security policy in .ic-assets.json5. For example:
WARN: [
WARN:   {
WARN:     "match": "**/*",
WARN:     "security_policy": "standard"
WARN:   }
WARN: ]
WARN: Assets without any security policy: all
WARN: To disable the policy warning, define "disable_security_policy_warning": true in .ic-assets.json5.
Fetching properties for all assets in the canister.
Done fetching properties for all assets in the canister. Took 3.627µs
Starting batch.
Staging contents of new and changed assets in batch 1:
  /logo2.svg 1/1 (15139 bytes) sha 037eb7ae523403daa588cf4f47a34c56a3f5de08a5a2dd2364839e45f14f4b8b (with 3 headers)
  /service-worker.js 1/1 (19645 bytes) sha bbe3de485287a2f1710277b8be4e4f00fa40226515ba4a213150ddb10d456257 (with 3 headers)
  /apple-touch-icon.png 1/1 (12913 bytes) sha 8c9845ea42918af3163e2039eef39df59de07cebd67e8d1f5b405040c54a0796 (with 3 headers)
  /devinci.png.zip 1/1 (351759 bytes) sha c7df20862e4e2ea32a2d42346a2e613fd168c07ebdba197a938728af196b6ea9 (with 3 headers)
  /assets/loading-44d9ce91.gif 1/1 (592820 bytes) sha 44d9ce910e8341f9e4abbfa88a74ab43835137dcaeb97c1a1fe34fcc47bbb322 (with 3 headers)
  /assets/index-0f93b4fe.js 1/4 (1900000 bytes) sha c806df9f5f40bd3c3635dfe55c4edf8b2277f7659db339ee3127ac2b19b79c4c (with 3 headers)
  /index.html 1/1 (1258 bytes) sha 6659bffe57a66cac16c3807c4552340cb79b3263b0f300fbc324271851113014 (with 3 headers)
  /manifest.webmanifest 1/1 (743 bytes) sha ba8f8fb5eb007c4a6bdbd037e7cdfee41be52af6b84dccfa401719aa4518e517 (with 3 headers)
  /.well-known/ii-alternative-origins 1/1 (30 bytes) sha 7d7e838ac04553436ad1a0e550ebbee6e69e5229c9ed605ec5ccf10bcdf34151 (with 4 headers)
  /FutureWebInitiative_img512.png 1/1 (18751 bytes) sha b6953d43f37e58f6b787eb1fbc2eb16c953f3970e0a03decb86086c849a5a2b7 (with 3 headers)
  /devinci-logo.svg 1/1 (19477 bytes) sha fdc92364a7501e68fde3e8940fefdbff8146dba324815374830c3c1e17fe75ef (with 3 headers)
  /android-chrome-512x512.png 1/1 (52263 bytes) sha 1799102f0d0e4cbca8abab02b35ecb4f977984452ffcc2eefb97194beb5e5f70 (with 3 headers)
  /android-chrome-192x192.png 1/1 (14135 bytes) sha 732bde510f6f11b10667e464771322afb82d1deaeca148181aaebedfefcc7ffa (with 3 headers)
  /devinci-logo-white.svg 1/1 (19477 bytes) sha 4d57498f322701c2ee16ee40699893f6cf0ec829156b3fea49c2af2f6aab2568 (with 3 headers)
  /bitfinity.svg 1/1 (11287 bytes) sha 6ba4362808556b8bf0bea1f67da7b905128e763ce4ed6b2ad5f7c57bb3bb6693 (with 3 headers)
  /mask-icon.png 1/1 (30517 bytes) sha 69f0d9f33089d748cbea8d3773e762226a026183da2eb07048e330ee8694f271 (with 3 headers)
  /internet-computer.svg 1/1 (2270 bytes) sha 421d304ec27f9d3c0dd75cf44848dd6983ea757d86163d810cc815ec4f97b220 (with 3 headers)
  /assets/index-a01760f0.js 1/1 (2274 bytes) sha b610014072cd0fb6907f226a49a4917b6b6ac92d8cf68274b8fba6f564821e99 (with 3 headers)
  /FutureWebInitiative_img.png 1/1 (24979 bytes) sha 598f77ce07cc54481a3fbb73a194b3d77d8492148be542cc4ef39b16a3ebc5f9 (with 3 headers)
  /loading.gif 1/1 (592820 bytes) sha 44d9ce910e8341f9e4abbfa88a74ab43835137dcaeb97c1a1fe34fcc47bbb322 (with 3 headers)
  /plug.webp 1/1 (36894 bytes) sha 6289fa6bc72be2944e6140275df9ad137c9a0c68ce6211e4ab127f88c2bde93c (with 3 headers)
  /devinci.zip 1/1 (5247 bytes) sha 22ab0b76972d2a0d442529c83d53fa30f51b1f35912b33f97cfe19d5fbbe2613 (with 3 headers)
  /nfid.webp 1/1 (7932 bytes) sha 0f900f6388bf3065b8b0beb1a3d1e4ca758ab2956b347ecceeffe014b20d3229 (with 3 headers)
  /favicon-16x16.png 1/1 (426 bytes) sha 1b71f96b4a1b66f823adb70751a8cae5f7d31895e3d67ae3c8e1c627df0fbf5e (with 3 headers)
  /service-worker.js (gzip) 1/1 (6836 bytes) sha 4c0bd8deb4916bf5a160d96bef26681cd15a912269565840424d65b7dd2c6ca6 (with 3 headers)
  /assets/index-0f93b4fe.js 2/4 (1900000 bytes) sha c806df9f5f40bd3c3635dfe55c4edf8b2277f7659db339ee3127ac2b19b79c4c (with 3 headers)
  /FutureWebInitiative_img192.png 1/1 (4904 bytes) sha 01c9d4b4f9b3ed59b2a4a0da7ec18383e10cb1f0609181ac4dd31e3a0ae8f5b5 (with 3 headers)
  /index.html (gzip) 1/1 (649 bytes) sha 24a18dac3fe5cdbf5355eecc798c1d7f740f9f071e994e9c76cdc917d16ea662 (with 3 headers)
  /devinci.svg 1/1 (10974 bytes) sha be7430aace9eca17d47fa4cbdda4e85d2f8cfa70307949166270cc34c88ceb0f (with 3 headers)
  /logo-dark.svg 1/1 (18345 bytes) sha aef04a913e379ce3a551138feb9b1a2130077c9de5ced1d4a2e5f286b2095370 (with 3 headers)
  /assets/index-a01760f0.js (gzip) 1/1 (1040 bytes) sha 723be7b57404552d6192396ca303f443d4e8b697aa3eb570e68688fb562d5f71 (with 3 headers)
  /assets/index-0f93b4fe.js (gzip) 2/2 (59976 bytes) sha ad92a36d083b34744bc03b344179c56f0a23a66d5d8b4b7ed22e772b30e83de3 (with 3 headers)
  /dummy.txt 1/1 (26 bytes) sha 3148989e55b42741a4f26751d73a78f75b2ae0e3e07de39c8e5653fbf00857f1 
  /main.css 1/1 (537 bytes) sha 75ac0c5aea719bb2b887fffbde61867be5c3a9eceab3d75619763c28735891cb (with 3 headers)
  /worker.ts 1/1 (259 bytes) sha 2b9ef34f44772c701c1450e6c92ba33711fef5b21529df877bde7f14ccd5b3a9 (with 3 headers)
  /assets/index-0f93b4fe.js 4/4 (578638 bytes) sha c806df9f5f40bd3c3635dfe55c4edf8b2277f7659db339ee3127ac2b19b79c4c (with 3 headers)
  /assets/index-0f93b4fe.js (gzip) 1/2 (1900000 bytes) sha ad92a36d083b34744bc03b344179c56f0a23a66d5d8b4b7ed22e772b30e83de3 (with 3 headers)
  /assets/index-0f93b4fe.js 3/4 (1900000 bytes) sha c806df9f5f40bd3c3635dfe55c4edf8b2277f7659db339ee3127ac2b19b79c4c (with 3 headers)
  /favicon-32x32.png 1/1 (1074 bytes) sha 1014724535d4105c04823882ecac257e74d70f64117bededa694a1f9e28b3350 (with 3 headers)
  /assets/index-f7ceefa8.css (gzip) 1/1 (6874 bytes) sha aa378515bce482ea8d21fb2dce4653b0b7538a3b7eb61b1c33bc7c7909c7cf14 (with 3 headers)
  /newchat.svg 1/1 (492 bytes) sha f982f3d8a1ee0f987fb9d51b986ff9d7603a4e9538ffb7e42e78a26d34de02a4 (with 3 headers)
  /main.css (gzip) 1/1 (299 bytes) sha b4879e7ba34e68b2965d626e48d772ce615e4f6b78b69cc8f2f91127ed18b850 (with 3 headers)
  /favicon.ico 1/1 (15406 bytes) sha 4c6eb9592eb1e863e7017be378d24936b647f90efffc5270d461543295d072aa (with 3 headers)
  /assets/index-f7ceefa8.css 1/1 (33286 bytes) sha f7ceefa8904a5c59ef4479233119cd4965528a0644f9b6fada0f35195e76e40c (with 3 headers)
Committing batch.
Committing batch with 74 operations.
Deployed canisters.
URLs:
  Frontend canister via browser
    DeVinci_frontend:
      - http://127.0.0.1:4943/?canisterId=bd3sg-teaaa-aaaaa-qaaba-cai
      - http://bd3sg-teaaa-aaaaa-qaaba-cai.localhost:4943/
  Backend canister via Candid interface:
    DeVinci_backend: http://127.0.0.1:4943/?canisterId=br5f7-7uaaa-aaaaa-qaaca-cai&id=bkyz2-fmaaa-aaaaa-qaaaq-cai
    internet_identity: http://127.0.0.1:4943/?canisterId=br5f7-7uaaa-aaaaa-qaaca-cai&id=be2us-64aaa-aaaaa-qaabq-cai
patnorris commented 2 months ago

It looks like you have different versions of some of the dependencies already installed on your machine (the Conflicting peer dependency errors). You can try changing the package.json file in the repo to use the versions you’ve got installed already. Otherwise, you might need to uninstall the existing versions of the dependencies such that the installation step works.

devAbdulsalam commented 2 months ago

This project is for knowledge foundation hackathon and I don't have the time to fix the issues after trying different options.

Can I just copy some useful components and use them for the Hackathon to build a solution using AI in education to fight corruption?

Since I can quickly build a solution using Motoko, React and AI.

I really appreciate your time and effort.

patnorris commented 2 months ago

Yes, I think you can also go ahead and build it that way if that works better (note though: I'm not a judge for the hackathon)