Multi-app projects using yarn in Ionic CI
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza con los archivos ionic.config.js de la raíz y específicos del proyecto que se muestran en el informe; después, sigue el paso dependency_install de Appflow que selecciona npm ci. Compara cómo se lee la configuración para proyectos de una sola aplicación y de varias aplicaciones. Se considera terminado cuando la configuración de varias aplicaciones selecciona de forma fiable el gestor de paquetes previsto y la instalación de dependencias deja de recurrir a npm.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description:
I have a project which uses yarn instead of npm. The project could be successfully built in Ionic CI. I converted it to multi-app by adding another ionic.config.js-file. After that, I have not been able to build it, even with trying various different options.
The details on using yarn could be found in the documentation and they are verifiably correct. I got yarn to work in the CI with a single application project. I converted the application to monorepo (using yarn workspaces). I ran into build problems with Ionic CI. The details about using yarn with multi-app are not available or are misleading.
The CI prints the error as follows (timestamps removed):
Checking if cordova or capacitor project
Cordova project detected
--------------------------------
--- Step: dependency_install ---
--------------------------------
Installing Dependencies
$ npm ci --quiet --no-optional
▸ npm ERR! The `npm ci` command can only install with an existing package-lock.json or
▸ npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
▸ npm ERR! later to generate a package-lock.json file, then try again.
▸ npm ERR! A complete log of this run can be found in:
▸ npm ERR! /root/.npm/_logs/2022-04-12T14_05_38_411Z-debug.log
`npm ci` failed falling back to `npm install`
I had the same issue when building a single package project. I fixed the error earlier by adding "yarn": true to the ionic.config.js.
After going multi-app, the yarn setting is not picked up. I tried the folllowing:
- add
"yarn": trueto the root of./ionic.config.js - add
"npmClient": "yarn"to the root of./ionic.config.js - add
"yarn": trueto a project insideprojectsin./ionic.config.js - add
"npmClient": "yarn"to a project insideprojectsin./ionic.config.js - add
"yarn": trueto the root of project-specific./ws/app/ionic.config.js - add
"npmClient": "yarn"to the root of project-specific./ws/app/ionic.config.js
Steps to Reproduce:
./ionic.config.js:
"defaultProject": "app",
"projects": {
"app": {
"name": "Mobile app",
"integrations": {
"capacitor": {}
},
"type": "react",
"yarn": true,
"root": "ws/app",
"npmClient": "yarn"
}
},
"yarn": true,
"npmClient": "yarn"
}
./ws/app/ionic.config.js:
{
"name": "app",
"integrations": {
"capacitor": {}
},
"type": "react",
"yarn": true,
"npmClient": "yarn"
}
Output:
Checking if cordova or capacitor project
Cordova project detected
--------------------------------
--- Step: dependency_install ---
--------------------------------
Installing Dependencies
$ npm ci --quiet --no-optional
▸ npm ERR! The `npm ci` command can only install with an existing package-lock.json or
▸ npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
▸ npm ERR! later to generate a package-lock.json file, then try again.
▸ npm ERR! A complete log of this run can be found in:
▸ npm ERR! /root/.npm/_logs/2022-04-12T14_05_38_411Z-debug.log
`npm ci` failed falling back to `npm install`
My ionic info:
Ionic:
Ionic CLI : 5.4.16 (/Users/name/workspace/name/maind/dev/maind/node_modules/ionic)
Ionic Framework : @ionic/react 6.0.13
Capacitor:
Capacitor CLI : 3.4.1
@capacitor/core : 3.4.1
Utility:
cordova-res : not installed
native-run : 1.5.0
System:
NodeJS : v16.14.2 (/Users/name/.nvm/versions/node/v16.14.2/bin/node)
npm : 8.5.0
OS : macOS Big Sur
Other Information:
I would like to use Appflow to build and distribute the app to shops.
- Lenguaje dominante
- MDX
- Estrellas
- 621
- Forks
- 3.2k
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 65
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ionic-team/ionic-docs
-
content: sheet modal docs should explain how to keep interactive content from dragging the sheetAbiertocontent
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ionic-team/ionic-docs#4765 ·
Los mantenedores suelen responder en 1 día
-
content
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ionic-team/ionic-docs#4705 ·
Los mantenedores suelen responder en 1 día
-
content package: angular
Dificultad 2/5 Medio día Aptitud para principiantes 78/100
ionic-team/ionic-docs#4702 ·
Los mantenedores suelen responder en 1 día
-
triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
ionic-team/ionic-docs#4546 ·
Los mantenedores suelen responder en 1 día
-
content: broken linkAbiertocontent
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ionic-team/ionic-docs#4381 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de ionic-team/ionic-docs
Issues similares
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100