reactjs / reactjs/react.dev

Running locally error (Node.js latest LTS Version (12.18.0))

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

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

主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
11

説明

Here's the log

ahmadrasyidsalim@DESKTOP-MJVOOLR:~/Rasyid/reactjs.org$ node --version
v12.18.0
ahmadrasyidsalim@DESKTOP-MJVOOLR:~/Rasyid/reactjs.org$ yarn --version
1.22.4
ahmadrasyidsalim@DESKTOP-MJVOOLR:~/Rasyid/reactjs.org$ yarn
yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.11: The platform "linux" is incompatible with this module.
info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "gatsby > react-hot-loader@4.12.19" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "gatsby-plugin-netlify > webpack-assets-manifest@3.1.1" has unmet peer dependency "webpack@>=4.4.0".
warning " > request-promise@4.2.5" has unmet peer dependency "request@^2.34".
warning "request-promise > request-promise-core@1.1.3" has unmet peer dependency "request@^2.34".
warning " > @babel/preset-flow@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@babel/preset-flow > @babel/plugin-transform-flow-strip-types@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@babel/preset-flow > @babel/plugin-transform-flow-strip-types > @babel/plugin-syntax-flow@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
[5/5] Building fresh packages...
Done in 214.63s.
ahmadrasyidsalim@DESKTOP-MJVOOLR:~/Rasyid/reactjs.org$ yarn dev
yarn run v1.22.4
$ gatsby develop -H 0.0.0.0
success open and validate gatsby-configs - 0.215s
success load plugins - 11.973s
success onPreInit - 0.096s
success initialize cache - 0.017s
success copy gatsby files - 1.239s
warn gatsby-plugin-feed was initialized in gatsby-config.js without a title in a feed.
This means that the plugin will use the default feed title, which may not match your use case.
This behavior will be removed in the next major release of gatsby-plugin-feed.
For more info, check out: https://gatsby.dev/adding-rss-feed
success onPreBootstrap - 0.039s
success createSchemaCustomization - 1.201s
success source and transform nodes - 2.094s
success building schema - 0.636s
success createPages - 0.991s
success createPagesStatefully - 0.169s
success onPreExtractQueries - 0.004s
success update schema - 0.048s
success extract queries from components - 0.953s
success write out requires - 0.105s
success write out redirect data - 0.015s
success Build manifest and related icons - 0.145s
success onPostBootstrap - 0.159s
⠀
info bootstrap finished - 48.385 s
⠀
success run queries - 0.142s - 71/71 500.68/s

 ERROR #98123  WEBPACK

Generating SSR bundle failed

Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Require stack:
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/@babel/preset-env/lib/index.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/@babel/core/lib/config/files/plugins.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/@babel/core/lib/config/files/index.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/@babel/core/lib/index.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/babel-loader/lib/index.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/gatsby/dist/utils/babel-loader.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/loader-runner/lib/loadLoader.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/loader-runner/lib/LoaderRunner.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/webpack/lib/NormalModule.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/webpack/lib/NormalModuleFactory.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/webpack/lib/Compiler.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/webpack/lib/webpack.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/gatsby/dist/commands/develop.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/gatsby-cli/lib/create-cli.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/gatsby-cli/lib/index.js
- /home/ahmadrasyidsalim/Rasyid/reactjs.org/node_modules/gatsby/dist/bin/gatsby.js

File: .cache/develop-static-entry.js



————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
320 pages                                                          In Progress                                                         react-website
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ahmadrasyidsalim@DESKTOP-MJVOOLR:~/Rasyid/reactjs.org$

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

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

はじめの一歩

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

調査の方向性

react.dev リポジトリで yarn と yarn dev を実行して Node.js 12.18.0 で失敗を再現し、その後 .cache/develop-static-entry.js と @babel preset-env require stack に関係する SSR エラーを調査します。@babel/compat-data/corejs3-shipped-proposals が見つからないエラーなしでローカル開発が開始すれば完了です。

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

評価

技術スタック
javascript, node.js
領域
build-system, web-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

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

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