ionic-team / ionic-team/ionic-conference-app

Errors and How to create a test version of app for android and ios?

Open
#1,820 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
3.6k
Forks
1.8k
Avg merge
17h 50m
Merged PRs (30d)
11

Description

I'm trying to create android and ios versions of this so I can practice writing Appium tests with it as we are going to be developing an ionic / angular app. When I try to run
How can I do this?
when I try to run:
`ionic cordova run android --prod`
or
`ionic cordova build android`
I get this error

`ng run app:ionic-cordova-build:production --platform=android
Node.js version v23.0.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/previous-releases/.
Error: Unknown argument: platform
[ERROR] An error occurred while running subprocess ng.

ng run app:ionic-cordova-build:production --platform=android exited with
exit code 1.

Re-running this command with the --verbose flag may provide more
information.`

I don't even know if doing this will give me and apk for me to play with.

When I try to run
`ionic cordova run ios --prod`
or
`ionic cordova build ios`

I get this error

`no such file or directory, open '/Users/sun/code/ionic-conference-app/ios/package.json'
at async open (node:internal/fs/promises:639:25)
at async readFile (node:internal/fs/promises:1239:14)
at async module.exports (/Users/sun/code/ionic-conference-app/node_modules/cordova-fetch/index.js:57:25) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/sun/code/ionic-conference-app/ios/package.json'
}
`

I'm hoping I can get some help on how to resolve this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.