GithubHelp home page GithubHelp logo

Comments (16)

Maker-Boot avatar Maker-Boot commented on June 11, 2024 2

@Mohamed-Hacene

Thx for the work.
It's all fixed With the docker image now.

Have a nice day

from ciso-assistant-community.

Maker-Boot avatar Maker-Boot commented on June 11, 2024 1

@Mohamed-Hacene

Ok thanks. i've requested the trial few minutes again indeed.

Have a nice day.

from ciso-assistant-community.

Maker-Boot avatar Maker-Boot commented on June 11, 2024 1

@Mohamed-Hacene
Sorry for the confusion it's an Ubuntu 22.04 jammy

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

Hi @Maker-Boot !

Thank you for informing us of your error. I have a few questions to better understand your issue:

  • Are you up to date with the main branch ?
  • When you ran ./docker-compose.sh script, have you got any error ?
  • If you're up to date with the main branch, what do you get if you run docker compose build ?

from ciso-assistant-community.

Maker-Boot avatar Maker-Boot commented on June 11, 2024

Hello @Mohamed-Hacene

I'm up to date from the main branch : Fri Apr 5 10:59:24 2024 commit 23d0fa4

Running both ./docker-compose.sh and docker compose build has the same result.
28.47 > [email protected] postinstall
28.47 > paraglide-js compile --project ./project.inlang
28.47
28.48 sh: paraglide-js: not found
28.48 npm ERR! code 127
28.48 npm ERR! path /app
28.48 npm ERR! command failed
28.49 npm ERR! command sh -c paraglide-js compile --project ./project.inlang

Regards.

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

Ok, it is very strange. Could you run into the frontend folder npm install @inlang/paraglide-js, and then run again docker compose build in the root folder

from ciso-assistant-community.

Maker-Boot avatar Maker-Boot commented on June 11, 2024

Package seems to ahve been installed but the docker build has the same output

log:
~/cisco-assistant/frontend$ npm install @inlang/paraglide-js
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @sveltejs/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/vite
npm WARN peer vite@"^3.0.0 || ^4.0.0 || ^5.0.0" from @storybook/[email protected]
npm WARN node_modules/@storybook/builder-vite
npm WARN @storybook/builder-vite@"7.6.17" from @storybook/[email protected]
npm WARN node_modules/@storybook/svelte-vite
npm WARN 1 more (@storybook/sveltekit)
npm WARN 10 more (@storybook/svelte-vite, @storybook/sveltekit, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte
npm WARN @sveltejs/vite-plugin-svelte@"^2.4.2" from @storybook/[email protected]
npm WARN node_modules/@storybook/svelte-vite
npm WARN 1 more (@sveltejs/vite-plugin-svelte-inspector)
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/vite
npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte
npm WARN @sveltejs/vite-plugin-svelte@"^2.4.2" from @storybook/[email protected]
npm WARN node_modules/@storybook/svelte-vite
npm WARN 1 more (@sveltejs/vite-plugin-svelte-inspector)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @sveltejs/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/vite
npm WARN peer vite@"^3.0.0 || ^4.0.0 || ^5.0.0" from @storybook/[email protected]
npm WARN node_modules/@storybook/builder-vite
npm WARN @storybook/builder-vite@"7.6.17" from @storybook/[email protected]
npm WARN node_modules/@storybook/svelte-vite
npm WARN 1 more (@storybook/sveltekit)
npm WARN 10 more (@storybook/svelte-vite, @storybook/sveltekit, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte/node_modules/@sveltejs/vite-plugin-svelte-inspector
npm WARN @sveltejs/vite-plugin-svelte-inspector@"^1.0.4" from @sveltejs/[email protected]
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/vite
npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte/node_modules/@sveltejs/vite-plugin-svelte-inspector
npm WARN @sveltejs/vite-plugin-svelte-inspector@"^1.0.4" from @sveltejs/[email protected]
npm WARN deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated [email protected]: Use your platform's native DOMException instead

added 1369 packages, and audited 1370 packages in 27s

250 packages are looking for funding
run npm fund for details

2 moderate severity vulnerabilities

To address all issues, run:
npm audit fix

Run npm audit for details.
npm notice
npm notice New minor version of npm available! 10.2.3 -> 10.5.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.5.1
npm notice Run npm install -g [email protected] to update!
npm notice

=> ERROR [frontend builder 13/15] RUN npm ci 33.8s

[frontend builder 13/15] RUN npm ci:
4.007 npm WARN ERESOLVE overriding peer dependency
4.008 npm WARN While resolving: @sveltejs/[email protected]
4.009 npm WARN Found: [email protected]
4.009 npm WARN node_modules/vite
4.009 npm WARN dev vite@"^5.0.0" from the root project
4.009 npm WARN 10 more (@storybook/builder-vite, @storybook/svelte-vite, ...)
4.009 npm WARN
4.009 npm WARN Could not resolve dependency:
4.009 npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
4.010 npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte
4.010 npm WARN @sveltejs/vite-plugin-svelte@"^2.4.2" from @storybook/[email protected]
4.010 npm WARN node_modules/@storybook/svelte-vite
4.010 npm WARN 1 more (@sveltejs/vite-plugin-svelte-inspector)
4.010 npm WARN
4.010 npm WARN Conflicting peer dependency: [email protected]
4.010 npm WARN node_modules/vite
4.010 npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
4.010 npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte
4.011 npm WARN @sveltejs/vite-plugin-svelte@"^2.4.2" from @storybook/[email protected]
4.011 npm WARN node_modules/@storybook/svelte-vite
4.011 npm WARN 1 more (@sveltejs/vite-plugin-svelte-inspector)
4.027 npm WARN ERESOLVE overriding peer dependency
4.028 npm WARN While resolving: @sveltejs/[email protected]
4.029 npm WARN Found: [email protected]
4.031 npm WARN node_modules/vite
4.031 npm WARN dev vite@"^5.0.0" from the root project
4.032 npm WARN 10 more (@storybook/builder-vite, @storybook/svelte-vite, ...)
4.032 npm WARN
4.033 npm WARN Could not resolve dependency:
4.033 npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
4.033 npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte/node_modules/@sveltejs/vite-plugin-svelte-inspector
4.033 npm WARN @sveltejs/vite-plugin-svelte-inspector@"^1.0.4" from @sveltejs/[email protected]
4.033 npm WARN
4.033 npm WARN Conflicting peer dependency: [email protected]
4.033 npm WARN node_modules/vite
4.034 npm WARN peer vite@"^4.0.0" from @sveltejs/[email protected]
4.034 npm WARN node_modules/@storybook/svelte-vite/node_modules/@sveltejs/vite-plugin-svelte/node_modules/@sveltejs/vite-plugin-svelte-inspector
4.034 npm WARN @sveltejs/vite-plugin-svelte-inspector@"^1.0.4" from @sveltejs/[email protected]
18.75 npm WARN deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
19.99 npm WARN deprecated [email protected]: Use your platform's native DOMException instead
30.01
30.01 > [email protected] postinstall
30.01 > paraglide-js compile --project ./project.inlang
30.01
30.02 sh: paraglide-js: not found
30.02 npm ERR! code 127
30.02 npm ERR! path /app
30.02 npm ERR! command failed
30.02 npm ERR! command sh -c paraglide-js compile --project ./project.inlang

from ciso-assistant-community.

Maker-Boot avatar Maker-Boot commented on June 11, 2024

Update

I tried locally to run npm ci but same result even when removing the node folder / cache etc...

@Inlang package are there and installed
node_modules/@inlang/
detect-json-formatting/ message-lint-rule/ paraglide-js-adapter-vite/ sdk/
json-types/ module/ plugin/ translatable/
language-tag/ paraglide-js/ project-settings/
message/ paraglide-js-adapter-unplugin/ result/

npm --version 10.5.0
node --version v21.7.2

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

Ok, we need to investigate this problem a little further, but in the meantime I suggest you to request a free cloud trial to be able to test the solution anyway.

I will do the installation on a blank machine to be sure it comes from a dependency/package issue and not from our dockerfile. I let this issue opened to keep you informed.

from ciso-assistant-community.

Maker-Boot avatar Maker-Boot commented on June 11, 2024

@Mohamed-Hacene

I've re done the installation from scratch.

It goes a bit further now.
Only difference is the version
node --version v21.2.0
npm --version 10.5.1

(also i'm bahinf a proxy but all access has been granted to be able to download the dependencies)

No more sh not found but i have this :
25.30 > paraglide-js compile --project ./project.inlang
25.30
25.62 ℹ [paraglide] Compiling inlang project at "./project.inlang".
25.64
25.64 WARN Could not find repository root for path /app/project.inlang
25.64
70.80
70.80 WARN The project has errors:
70.80
70.81
70.81 ERROR Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js":
70.81
70.81 TypeError: fetch failed
70.81
70.81
70.81 TypeError: fetch failed
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21488:25)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.81
70.81 ERROR Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js":
70.81
70.81 TypeError: fetch failed
70.81
70.81
70.81 TypeError: fetch failed
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21488:25)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.81
70.81 ERROR Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js":
70.81
70.81 TypeError: fetch failed
70.81
70.81
70.81 TypeError: fetch failed
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21488:25)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.81
70.81 ERROR Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js":
70.81
70.81 TypeError: fetch failed
70.81
70.81
70.81 TypeError: fetch failed
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21488:25)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.81
70.81 ERROR Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-valid-js-identifier@latest/dist/index.js":
70.81
70.81 TypeError: fetch failed
70.81
70.81
70.81 TypeError: fetch failed
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21488:25)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.81
70.81 ERROR Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js":
70.81
70.81 TypeError: fetch failed
70.81
70.81
70.81 TypeError: fetch failed
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21488:25)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.81
70.81 ERROR Couldn't import the plugin "https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@latest/dist/index.js":
70.81
70.81 TypeError: fetch failed
70.81
70.81
70.81 TypeError: fetch failed
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21488:25)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.81
70.81 ERROR No plugin provides a loadMessages() or saveMessages() function
70.81
70.81 In case no plugin threw an error, you likely forgot to add a plugin that handles the loading and saving of messages. Refer to the marketplace for available plugins https://inlang.com/marketplace.
70.81
70.81
70.81 In case no plugin threw an error, you likely forgot to add a plugin that handles the loading and saving of messages. Refer to the marketplace for available plugins https://inlang.com/marketplace.
70.81 at resolvePlugins (node_modules/@inlang/paraglide-js/dist/index.js:21454:24)
70.81 at resolveModules (node_modules/@inlang/paraglide-js/dist/index.js:21529:33)
70.81 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
70.81
70.83 npm ERR! code 1
70.83 npm ERR! path /app
70.83 npm ERR! command failed
70.83 npm ERR! command sh -c paraglide-js compile --project ./project.inlang

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

Ok good to know, can you try without the proxy to be sure it's not related to it (If you don't have time, don't worry I will try later) ?

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

@Maker-Boot could you also run lsb_release -a to be sure of your ubuntu version, because I'm not sure of what OS: 12.02 represents

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

No problem :)
I'm discussing a similar issue in parallel #227 and the problem seems to come from the proxy despite having granted full access, as this is the only point in common between your configurations.

A workaround will be proposed as soon as possible by publishing our images.

Thanks for your help and patience.

from ciso-assistant-community.

Maker-Boot avatar Maker-Boot commented on June 11, 2024

@Mohamed-Hacene
Thx for the update.

I cannot disable the proxy unfortunately.

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

No problem, if we find a workaround, I will share it for everybody.
But once our images will be published, this kind of problem will no longer be a problem :)

I'll let you know here when they're up !

from ciso-assistant-community.

Mohamed-Hacene avatar Mohamed-Hacene commented on June 11, 2024

Docker compose with prebuilt image is now available to avoid local docker images build issues.

I'm closing this issue as it should be fixed by prebuilt images.

from ciso-assistant-community.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.