Giter Site home page Giter Site logo

Unable to build about lindo HOT 4 CLOSED

val-men avatar val-men commented on August 24, 2024
Unable to build

from lindo.

Comments (4)

val-men avatar val-men commented on August 24, 2024 1

Bonjour Julien,

Effectivement, plutôt bête. Après avoir rollback les éléments indiqués, le build fonctionne parfaitement.
Merci beaucoup pour ton aide :)

from lindo.

JulienCoutault avatar JulienCoutault commented on August 24, 2024

Salut,
Essaie de travailler avec une version de Node 14 pour Lindo, y'a pas mal de dette technique et l'erreur vient peut etre de ta version de node trop recente.

Pour npm install --legacy-peer-deps --force, ca ne risque pas de marcher : trop de dette technique pour casse si on met tout a jour brutallement

from lindo.

val-men avatar val-men commented on August 24, 2024

Merci pour ton retour.

Je viens de passer sur Node 14. Est-ce la bonne version ?

$ npm -v
6.14.17
$ node -v
v14.19.3

Malheureusement, j'ai toujours la même erreur, ça te parle ?
Cela vient de tsc -p electron qui est lancé dans le npm run build:electron:dev

$ npm run build:dev

> [email protected] build:dev /home/kali/Documents/projects/lindo
> npm run build:electron:dev && ng build --watch

npm WARN config cache-min This option has been deprecated in favor of `--prefer-offline`.
npm WARN config cache-max This option has been deprecated in favor of `--prefer-online`
npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
npm WARN config location in the cache, and they are managed by
npm WARN config     [`cacache`](http://npm.im/cacache).
npm WARN config sso-type The --auth-type method of SSO/SAML/OAuth will be removed in a future
npm WARN config version of npm in favor of web-based login.
npm WARN config sso-poll-frequency The --auth-type method of SSO/SAML/OAuth will be removed in a future
npm WARN config version of npm in favor of web-based login.
npm WARN config auth-type This method of SSO/SAML/OAuth is deprecated and will be removed in
npm WARN config a future version of npm in favor of web-based login.
npm WARN config shrinkwrap Use the --package-lock setting instead.
npm WARN config optional Use `--omit=optional` to exclude optional dependencies, or
npm WARN config `--include=optional` to include them.
npm WARN config 
npm WARN config     Default value does install optional deps unless otherwise omitted.

> [email protected] build:electron:dev
> tsc -p electron/ && ncp electron/i18n dist/electron/i18n

electron/windows/main-window.ts:58:17 - error TS2322: Type '{ defaultFontSize: number; defaultEncoding: string; backgroundThrottling: false; allowRunningInsecureContent: true; webSecurity: false; partition: string; nodeIntegration: true; contextIsolation: false; enableRemoteModule: true; }' is not assignable to type 'WebPreferences'.
  Object literal may only specify known properties, and 'enableRemoteModule' does not exist in type 'WebPreferences'.

58                 enableRemoteModule: true
                   ~~~~~~~~~~~~~~~~~~~~~~~~
  node_modules/electron/electron.d.ts:13098:5
    13098     webPreferences?: WebPreferences;
              ~~~~~~~~~~~~~~
    The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'

electron/windows/update-window.ts:32:17 - error TS2322: Type '{ webSecurity: false; nodeIntegration: true; contextIsolation: false; enableRemoteModule: true; }' is not assignable to type 'WebPreferences'.
  Object literal may only specify known properties, and 'enableRemoteModule' does not exist in type 'WebPreferences'.

32                 enableRemoteModule: true
                   ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/electron/electron.d.ts:13098:5
    13098     webPreferences?: WebPreferences;
              ~~~~~~~~~~~~~~
    The expected type comes from property 'webPreferences' which is declared here on type 'BrowserWindowConstructorOptions'


Found 2 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build:dev: `npm run build:electron:dev && ng build --watch`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] build:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kali/.npm/_logs/2022-06-04T14_48_36_684Z-debug.log
                                                                                          

from lindo.

JulienCoutault avatar JulienCoutault commented on August 24, 2024

Je viens de passer sur Node 14. Est-ce la bonne version ?

C'est la version notée sur le readme donc ça doit être la bonne (je n'ai pas ouvert ça depuis un bout de temps)

Malheureusement, j'ai toujours la même erreur, ça te parle ?

Pour moi c'est parce que tu as installe des packages trop récent, supprime node_modules, reset les fichiers packages.json et packages-lock.json, et relance une install (npm ci)

from lindo.

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.