Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

sync: #26964a5 #163

Merged
merged 3 commits into from
Oct 3, 2020
Merged

sync: #26964a5 #163

merged 3 commits into from
Oct 3, 2020

Conversation

Jinjiang
Copy link
Member

@Jinjiang Jinjiang commented Oct 3, 2020

Synced all kinds of latest project config from docs-next #26964a5

Added 2 pages (need to be translated later):

  • src/guide/mobile.md
  • src/guide/migration/watch.md

Fixed: #156 (comment)

@Justineo
Copy link
Member

Justineo commented Oct 3, 2020

Depoly 好像失败了,我现在在手机上不方便看 😅

@veaba
Copy link
Member

veaba commented Oct 3, 2020

Depoly 好像失败了,我现在在手机上不方便看 😅

我这边看看,enjoy 假期

@veaba
Copy link
Member

veaba commented Oct 3, 2020

看起来是依赖的问题,我贴一下 error log:

5:13:42 PM: Build ready to start
5:13:43 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
5:13:43 PM: build-image tag: v3.4.1
5:13:43 PM: buildbot version: 0e3cc7aef5c33f731b54ed4b65d515eaab821679
5:13:43 PM: Fetching cached dependencies
5:13:44 PM: Starting to download cache of 135.0MB
5:13:51 PM: Finished downloading cache in 7.248235466s
5:13:51 PM: Starting to extract cache
5:13:56 PM: Finished extracting cache in 5.661781998s
5:13:56 PM: Finished fetching cache in 12.943272902s
5:13:56 PM: Starting to prepare the repo for build
5:13:57 PM: Preparing Git Reference pull/163/head
5:13:59 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'src/.vuepress/dist' versus 'src/.vuepress/dist/' in the Netlify UI
5:13:59 PM: Starting build script
5:13:59 PM: Installing dependencies
5:13:59 PM: Python version set to 2.7
5:13:59 PM: Started restoring cached node version
5:14:02 PM: Finished restoring cached node version
5:14:02 PM: v12.18.0 is already installed.
5:14:03 PM: Now using node v12.18.0 (npm v6.14.4)
5:14:03 PM: Started restoring cached build plugins
5:14:03 PM: Finished restoring cached build plugins
5:14:03 PM: Attempting ruby version 2.7.1, read from environment
5:14:04 PM: Using ruby version 2.7.1
5:14:04 PM: Using PHP version 5.6
5:14:05 PM: 5.2 is already installed.
5:14:05 PM: Using Swift version 5.2
5:14:05 PM: Started restoring cached node modules
5:14:05 PM: Finished restoring cached node modules
5:14:05 PM: Started restoring cached yarn cache
5:14:05 PM: Finished restoring cached yarn cache
5:14:05 PM: Installing NPM modules using Yarn version 1.22.4
5:14:05 PM: yarn install v1.22.4
5:14:06 PM: [1/4] Resolving packages...
5:14:06 PM: [2/4] Fetching packages...
5:14:13 PM: warning url-loader@1.1.2: Invalid bin field for "url-loader".
5:14:23 PM: info fsevents@1.2.11: The platform "linux" is incompatible with this module.
5:14:23 PM: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
5:14:23 PM: [3/4] Linking dependencies...
5:14:23 PM: warning "@docsearch/js > @docsearch/react@1.0.0-alpha.27" has unmet peer dependency "react@^16.8.0".
5:14:23 PM: warning "@docsearch/js > @docsearch/react@1.0.0-alpha.27" has unmet peer dependency "react-dom@^16.8.0".
5:14:23 PM: warning " > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
5:14:32 PM: [4/4] Building fresh packages...
5:14:34 PM: Done in 28.99s.
5:14:35 PM: NPM modules installed using Yarn
5:14:35 PM: Started restoring cached go cache
5:14:35 PM: Finished restoring cached go cache
5:14:35 PM: go version go1.14.4 linux/amd64
5:14:35 PM: go version go1.14.4 linux/amd64
5:14:35 PM: Installing missing commands
5:14:35 PM: Verify run directory
5:14:36 PM: ​
5:14:36 PM: ┌─────────────────────────────┐
5:14:36 PM: │        Netlify Build        │
5:14:36 PM: └─────────────────────────────┘
5:14:36 PM: ​
5:14:36 PM: ❯ Version
5:14:36 PM:   @netlify/build 4.6.3
5:14:36 PM: ​
5:14:36 PM: ❯ Flags
5:14:36 PM:   deployId: 5f7840c5cdee1500071004e9
5:14:36 PM:   mode: buildbot
5:14:36 PM: ​
5:14:36 PM: ❯ Current directory
5:14:36 PM:   /opt/build/repo
5:14:36 PM: ​
5:14:36 PM: ❯ Config file
5:14:36 PM:   /opt/build/repo/netlify.toml
5:14:36 PM: ​
5:14:36 PM: ❯ Context
5:14:36 PM:   deploy-preview
5:14:36 PM: ​
5:14:36 PM: ┌───────────────────────────────────┐
5:14:36 PM: │ 1. Build command from Netlify app │
5:14:36 PM: └───────────────────────────────────┘
5:14:36 PM: ​
5:14:36 PM: $ yarn build
5:14:36 PM: yarn run v1.22.4
5:14:36 PM: $ vuepress build src
5:14:37 PM: wait Extracting site metadata...
5:14:37 PM: tip Apply local theme at /opt/build/repo/src/.vuepress/theme...
5:14:37 PM: tip Apply theme local ...
5:14:37 PM: tip Apply plugin container (i.e. "vuepress-plugin-container") ...
5:14:37 PM: tip Apply plugin @vuepress/last-updated (i.e. "@vuepress/plugin-last-updated") ...
5:14:37 PM: tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...
5:14:37 PM: tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...
5:14:37 PM: tip Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ...
5:14:37 PM: tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ...
5:14:37 PM: tip Apply plugin @vuepress/pwa (i.e. "@vuepress/plugin-pwa") ...
5:14:41 PM: [info] [webpackbar] Compiling Client
5:14:41 PM: [info] [webpackbar] Compiling Server
5:14:41 PM: Browserslist: caniuse-lite is outdated. Please run the following command: `yarn upgrade`
5:14:41 PM: [success] [webpackbar] Server: Compiled with some errors in 293.90ms
5:14:41 PM: [success] [webpackbar] Client: Compiled with some errors in 520.35ms
5:14:41 PM: (undefined) ./node_modules/@vuepress/core/lib/client/clientEntry.js
5:14:41 PM: Module build failed (from ./node_modules/babel-loader/lib/index.js):
5:14:41 PM: Error: [BABEL] /opt/build/repo/node_modules/@vuepress/core/lib/client/clientEntry.js: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
5:14:41 PM: Require stack:
5:14:41 PM: - /opt/build/repo/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/preset-env/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@vue/babel-preset-app/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/core/lib/config/files/plugins.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/core/lib/config/files/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/core/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/babel-loader/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/loader-runner/lib/loadLoader.js
5:14:41 PM: - /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/NormalModule.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/NormalModuleFactory.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/Compiler.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/webpack.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack-dev-server/lib/Server.js
5:14:41 PM: - /opt/build/repo/node_modules/@vuepress/core/lib/node/dev/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@vuepress/core/lib/node/App.js
5:14:41 PM: - /opt/build/repo/node_modules/@vuepress/core/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/vuepress/lib/registerCoreCommands.js
5:14:41 PM: - /opt/build/repo/node_modules/vuepress/cli.js (While processing: "/opt/build/repo/node_modules/@vue/babel-preset-app/index.js")
5:14:41 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
5:14:41 PM:     at Function.Module._load (internal/modules/cjs/loader.js:842:27)
5:14:41 PM:     at Module.require (internal/modules/cjs/loader.js:1026:19)
5:14:41 PM:     at require (internal/modules/cjs/helpers.js:72:18)
5:14:41 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
5:14:41 PM:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
5:14:41 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
5:14:41 PM:     at Module.load (internal/modules/cjs/loader.js:986:32)
5:14:41 PM:     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
5:14:41 PM:     at Module.require (internal/modules/cjs/loader.js:1026:19)
5:14:41 PM:     at require (internal/modules/cjs/helpers.js:72:18)
5:14:41 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/preset-env/lib/index.js:29:44)
5:14:41 PM:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
5:14:41 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
5:14:41 PM:     at Module.load (internal/modules/cjs/loader.js:986:32)
5:14:41 PM:     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
5:14:41 PM:  @ multi ./node_modules/@vuepress/core/lib/client/clientEntry.js app[0]
5:14:41 PM: (undefined) ./node_modules/@vuepress/core/lib/client/serverEntry.js
5:14:41 PM: Module build failed (from ./node_modules/babel-loader/lib/index.js):
5:14:41 PM: Error: [BABEL] /opt/build/repo/node_modules/@vuepress/core/lib/client/serverEntry.js: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
5:14:41 PM: Require stack:
5:14:41 PM: - /opt/build/repo/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/preset-env/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@vue/babel-preset-app/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/core/lib/config/files/plugins.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/core/lib/config/files/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@babel/core/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/babel-loader/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/loader-runner/lib/loadLoader.js
5:14:41 PM: - /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/NormalModule.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/NormalModuleFactory.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/Compiler.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack/lib/webpack.js
5:14:41 PM: - /opt/build/repo/node_modules/webpack-dev-server/lib/Server.js
5:14:41 PM: - /opt/build/repo/node_modules/@vuepress/core/lib/node/dev/index.js
5:14:41 PM: - /opt/build/repo/node_modules/@vuepress/core/lib/node/App.js
5:14:41 PM: - /opt/build/repo/node_modules/@vuepress/core/lib/index.js
5:14:41 PM: - /opt/build/repo/node_modules/vuepress/lib/registerCoreCommands.js
5:14:41 PM: - /opt/build/repo/node_modules/vuepress/cli.js (While processing: "/opt/build/repo/node_modules/@vue/babel-preset-app/index.js")
5:14:41 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
5:14:41 PM:     at Function.Module._load (internal/modules/cjs/loader.js:842:27)
5:14:41 PM:     at Module.require (internal/modules/cjs/loader.js:1026:19)
5:14:41 PM:     at require (internal/modules/cjs/helpers.js:72:18)
5:14:41 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
5:14:41 PM:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
5:14:41 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
5:14:41 PM:     at Module.load (internal/modules/cjs/loader.js:986:32)
5:14:41 PM:     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
5:14:41 PM:     at Module.require (internal/modules/cjs/loader.js:1026:19)
5:14:41 PM:     at require (internal/modules/cjs/helpers.js:72:18)
5:14:41 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/preset-env/lib/index.js:29:44)
5:14:41 PM:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
5:14:41 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
5:14:41 PM:     at Module.load (internal/modules/cjs/loader.js:986:32)
5:14:42 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
5:14:41 PM:     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
5:14:41 PM:  @ multi ./node_modules/@vuepress/core/lib/client/serverEntry.js app[0]
5:14:41 PM: Error: Failed to compile with errors.
5:14:41 PM:     at /opt/build/repo/node_modules/@vuepress/core/lib/node/build/index.js:180:16
5:14:41 PM:     at finalCallback (/opt/build/repo/node_modules/webpack/lib/MultiCompiler.js:254:12)
5:14:41 PM:     at /opt/build/repo/node_modules/webpack/lib/MultiCompiler.js:277:6
5:14:41 PM:     at done (/opt/build/repo/node_modules/neo-async/async.js:2931:13)
5:14:41 PM:     at runCompilers (/opt/build/repo/node_modules/webpack/lib/MultiCompiler.js:181:48)
5:14:41 PM:     at /opt/build/repo/node_modules/webpack/lib/MultiCompiler.js:188:7
5:14:41 PM:     at /opt/build/repo/node_modules/webpack/lib/MultiCompiler.js:270:7
5:14:41 PM:     at finalCallback (/opt/build/repo/node_modules/webpack/lib/Compiler.js:257:39)
5:14:41 PM:     at /opt/build/repo/node_modules/webpack/lib/Compiler.js:273:13
5:14:41 PM:     at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:31:1)
5:14:41 PM:     at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/tapable/lib/Hook.js:154:20)
5:14:41 PM:     at onCompiled (/opt/build/repo/node_modules/webpack/lib/Compiler.js:271:21)
5:14:41 PM:     at /opt/build/repo/node_modules/webpack/lib/Compiler.js:681:15
5:14:41 PM:     at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1)
5:14:41 PM:     at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/tapable/lib/Hook.js:154:20)
5:14:41 PM:     at /opt/build/repo/node_modules/webpack/lib/Compiler.js:678:31
5:14:42 PM: error Command failed with exit code 1.
5:14:42 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
5:14:42 PM: ​
5:14:42 PM: ┌─────────────────────────────┐
5:14:42 PM: │   "build.command" failed    │
5:14:42 PM: └─────────────────────────────┘
5:14:42 PM: ​
5:14:42 PM:   Error message
5:14:42 PM:   Command failed with exit code 1: yarn build
5:14:42 PM: ​
5:14:42 PM:   Error location
5:14:42 PM:   In Build command from Netlify app:
5:14:42 PM:   yarn build
5:14:42 PM: ​
5:14:42 PM:   Resolved config
5:14:42 PM:   build:
5:14:42 PM:     command: yarn build
5:14:42 PM:     commandOrigin: ui
5:14:42 PM:     environment:
5:14:42 PM:       - REVIEW_ID
5:14:42 PM:     publish: /opt/build/repo/src/.vuepress/dist
5:14:42 PM:   redirects:
5:14:42 PM:     - from: /guide/
5:14:42 PM:       to: /guide/introduction.html
5:14:42 PM:     - from: guide/doc-style-guide.html
5:14:42 PM:       to: /guide/contributing/doc-style-guide.html
5:14:42 PM:     - from: /guide/writing-guide.html
5:14:42 PM:       to: /guide/contributing/writing-guide.html
5:14:42 PM: Caching artifacts
5:14:42 PM: Started saving node modules
5:14:42 PM: Finished saving node modules
5:14:42 PM: Started saving build plugins
5:14:42 PM: Finished saving build plugins
5:14:42 PM: Started saving yarn cache
5:14:42 PM: Finished saving yarn cache
5:14:42 PM: Started saving pip cache
5:14:42 PM: Finished saving pip cache
5:14:42 PM: Started saving emacs cask dependencies
5:14:42 PM: Finished saving emacs cask dependencies
5:14:42 PM: Started saving maven dependencies
5:14:42 PM: Finished saving maven dependencies
5:14:42 PM: Started saving boot dependencies
5:14:42 PM: Finished saving boot dependencies
5:14:42 PM: Started saving go dependencies
5:14:42 PM: Finished saving go dependencies
5:14:42 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:14:42 PM: Failing build: Failed to build site
5:14:42 PM: Finished processing build request in 58.992333808s

@veaba veaba mentioned this pull request Oct 3, 2020
@veaba
Copy link
Member

veaba commented Oct 3, 2020

@Justineo @Jinjiang 找到问题了,Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

解决方案:

npm update --depth 5 @babel/preset-env
npm update --depth 5 @babel/compat-data

我在#165 中 删了 yarn.lock ,再重新更新了 deps,checks 成功。

@veaba veaba merged commit df7562a into master Oct 3, 2020
@veaba
Copy link
Member

veaba commented Oct 3, 2020

@Justineo 已 deploy 成功。:tada:

@veaba veaba deleted the jinjiang/update branch October 3, 2020 10:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants