init (beta) does not work

オープン
#4,414 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular, typescript
領域
cli

調査の方向性

ng new、続いて ionic initionic serve を使って報告されたフローを再現し、コマンド出力を出発点として使用します。initserve のエントリーポイントをたどり、初期化された Angular プロジェクトが認識されない理由を特定します。完了条件は、生成されたプロジェクトで「Project does not exist」エラーなしに ionic serve を実行できることです。

索引モデルが issue の本文から書いたものです。

説明

triage

Description:
trying to use the new ionic init command does not work as expected.

After creating a simple ng app with ng new we try to add with ionic init the ionic project.

This is the output we have:

ionic init
? Project name: web-client-ionic
[WARN] Could not determine project type.

       Please choose a project type from the list.

? Project type: @ionic/angular (angular)
[OK] Your Ionic project has been initialized!

This is only creating the ionic.config.json file, but it does not install any dependencies.

On running now ionic serve we get this

ionic serve
> ng run app:serve --host=localhost --port=8100
[ng] An unhandled exception occurred: Project does not exist.
[ng] See "/private/var/folders/t0/25v77r0n1h52ln6mmjvnllzm0000gn/T/ng-1qK8zi/angular-errors.log" for further details.

[ERROR] ng has unexpectedly closed (exit code 127).

        The Ionic CLI will exit. Please check any output above for error details.

Also after installaing @ionic/angular and @ionic/angular-toolkit we run into the same error

I know the function is in beta, but perhaps this is not an expecting error from your side

thx

主要言語
TypeScript
スター
2k
フォーク
681
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-cli のほかの issue

ionic-team/ionic-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。