実現したいこと
ReactのアプリをAmplifyでデプロイしたい
初心者のため初歩的なことがわかっていない可能性があります。
ご教授の程よろしくお願いいたします。
発生しているエラー
AWSAmplifyConsole
# Starting phase: preBuild # Executing command: yarn install 2021-09-29T08:53:07.517Z [INFO]: yarn install v1.22.0 2021-09-29T08:53:07.603Z [INFO]: [1/4] Resolving packages... 2021-09-29T08:53:08.112Z [INFO]: [2/4] Fetching packages... 2021-09-29T08:53:24.049Z [INFO]: info fsevents@2.3.2: The platform "linux" is incompatible with this module. 2021-09-29T08:53:24.054Z [INFO]: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. 2021-09-29T08:53:24.067Z [INFO]: info fsevents@1.2.13: The platform "linux" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 2021-09-29T08:53:24.078Z [INFO]: [3/4] Linking dependencies... 2021-09-29T08:53:39.021Z [INFO]: [4/4] Building fresh packages... 2021-09-29T08:53:39.701Z [INFO]: Done in 32.19s. 2021-09-29T08:53:39.731Z [INFO]: # Completed phase: preBuild # Starting phase: build 2021-09-29T08:53:39.731Z [INFO]: # Executing command: yarn run build 2021-09-29T08:53:39.857Z [INFO]: yarn run v1.22.0 2021-09-29T08:53:39.883Z [INFO]: $ react-scripts build 2021-09-29T08:53:41.015Z [INFO]: Creating an optimized production build... 2021-09-29T08:53:42.170Z [INFO]: Failed to compile. 2021-09-29T08:53:42.172Z [INFO]: ./src/App.js Cannot find file './components/router/Router' in './src'. 2021-09-29T08:53:42.189Z [WARNING]: error Command failed with exit code 1. 2021-09-29T08:53:42.190Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 2021-09-29T08:53:42.196Z [ERROR]: !!! Build failed 2021-09-29T08:53:42.196Z [ERROR]: !!! Non-Zero Exit Code detected 2021-09-29T08:53:42.196Z [INFO]: # Starting environment caching... 2021-09-29T08:53:42.197Z [INFO]: # Environment caching completed Terminating logging...
まだ回答がついていません
会員登録して回答してみよう