質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
AWS Amplify

AWS Amplifyとは、AWSを用いたWebアプリケーション向けのJavaScriptライブラリです。サインアップ/サインイン、MFA、コンテンツ管理、さらにサーバーレスなバックエンドの自動構築などの実装が容易にできます。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

Q&A

解決済

1回答

4947閲覧

!!! Non-Zero Exit Code detectedを解決してReactのアプリをAmplifyでデプロイしたい

chiuney

総合スコア3

AWS Amplify

AWS Amplifyとは、AWSを用いたWebアプリケーション向けのJavaScriptライブラリです。サインアップ/サインイン、MFA、コンテンツ管理、さらにサーバーレスなバックエンドの自動構築などの実装が容易にできます。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

0グッド

0クリップ

投稿2021/09/29 08:03

編集2021/09/29 08:55

実現したいこと

ReactのアプリをAmplifyでデプロイしたい
初心者のため初歩的なことがわかっていない可能性があります。
ご教授の程よろしくお願いいたします。

発生しているエラー

AWSAmplifyConsole

1 # Starting phase: preBuild 2 # Executing command: yarn install 32021-09-29T08:53:07.517Z [INFO]: yarn install v1.22.0 42021-09-29T08:53:07.603Z [INFO]: [1/4] Resolving packages... 52021-09-29T08:53:08.112Z [INFO]: [2/4] Fetching packages... 62021-09-29T08:53:24.049Z [INFO]: info fsevents@2.3.2: The platform "linux" is incompatible with this module. 72021-09-29T08:53:24.054Z [INFO]: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. 82021-09-29T08:53:24.067Z [INFO]: info fsevents@1.2.13: The platform "linux" is incompatible with this module. 9 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 102021-09-29T08:53:24.078Z [INFO]: [3/4] Linking dependencies... 112021-09-29T08:53:39.021Z [INFO]: [4/4] Building fresh packages... 122021-09-29T08:53:39.701Z [INFO]: Done in 32.19s. 132021-09-29T08:53:39.731Z [INFO]: # Completed phase: preBuild 14 # Starting phase: build 152021-09-29T08:53:39.731Z [INFO]: # Executing command: yarn run build 162021-09-29T08:53:39.857Z [INFO]: yarn run v1.22.0 172021-09-29T08:53:39.883Z [INFO]: $ react-scripts build 182021-09-29T08:53:41.015Z [INFO]: Creating an optimized production build... 192021-09-29T08:53:42.170Z [INFO]: Failed to compile. 202021-09-29T08:53:42.172Z [INFO]: ./src/App.js 21 Cannot find file './components/router/Router' in './src'. 222021-09-29T08:53:42.189Z [WARNING]: error Command failed with exit code 1. 232021-09-29T08:53:42.190Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 242021-09-29T08:53:42.196Z [ERROR]: !!! Build failed 252021-09-29T08:53:42.196Z [ERROR]: !!! Non-Zero Exit Code detected 262021-09-29T08:53:42.196Z [INFO]: # Starting environment caching... 272021-09-29T08:53:42.197Z [INFO]: # Environment caching completed 28Terminating logging...

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

errorとwarningを1つ1つ確認したら解決できました。

投稿2021/09/29 09:11

chiuney

総合スコア3

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問