Running locally error (Node.js latest LTS Version (12.18.0))
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 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$
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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