Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Error: The cwd option must be a path to a directory #7052

Closed
6 of 7 tasks
danyow opened this issue Mar 29, 2022 · 10 comments
Closed
6 of 7 tasks

[ERROR] Error: The cwd option must be a path to a directory #7052

danyow opened this issue Mar 29, 2022 · 10 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@danyow
Copy link

danyow commented Mar 29, 2022

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

I cloned this project, but it failed to run. It only succeeded on the Mac

Reproducible demo

No response

Steps to reproduce

windows11 or wsl2-ubuntu or wsl2-arch env:

  1. git clone https://github.com/facebook/docusaurus.git
  2. cd docusaurus
  3. yarn install
  4. yarn start get the same errors:
    [ERROR] Loading of version failed for version current
    [ERROR] Error: The cwd option must be a path to a directory

mac env:

  1. git clone https://github.com/facebook/docusaurus.git
  2. cd docusaurus
  3. yarn install
  4. yarn start
  5. success!
  6. why!????

Expected behavior

windows11, wsl2-ubuntu and wsl2-arch run success

Actual behavior

Log
PS E:\nodejs\docusaurus> yarn
yarn install v1.22.5
info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
warning lerna > @lerna/bootstrap > read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
warning lerna > @lerna/version > temp-write > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning lerna > @lerna/create > pacote > @npmcli/run-script > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning lerna > @lerna/bootstrap > @lerna/run-lifecycle > npm-lifecycle > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning lerna > @lerna/create > pacote > @npmcli/run-script > node-gyp > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning lerna > @lerna/create > pacote > @npmcli/run-script > node-gyp > request > har-validator@5.1.5: this library is no longer supported
warning netlify-cli > @netlify/build > statsd-client@0.4.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
warning netlify-cli > @netlify/plugin-edge-handlers > rollup-plugin-node-polyfills > rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
warning netlify-cli > @netlify/zip-it-and-ship-it > @vercel/nft > node-pre-gyp@0.13.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning netlify-cli > @netlify/zip-it-and-ship-it > precinct > detective-postcss > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > @docusaurus/theme-live-codeblock > react-live > core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > @docusaurus/theme-search-algolia > algoliasearch-helper@3.7.4: 3.7.3
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-x64-gnu@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-linux-x64-gnu@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-win32-ia32-msvc@1.2.161: The CPU architecture "x64" is incompatible with this module.
info "@swc/core-win32-ia32-msvc@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-darwin-x64@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-darwin-x64@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm-gnueabihf@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-linux-arm-gnueabihf@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm-gnueabihf@1.2.161: The CPU architecture "x64" is incompatible with this module.
info @swc/core-freebsd-x64@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-freebsd-x64@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm64-gnu@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-linux-arm64-gnu@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm64-gnu@1.2.161: The CPU architecture "x64" is incompatible with this module.
info @swc/core-linux-x64-musl@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-linux-x64-musl@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-android-arm-eabi@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-android-arm-eabi@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-android-arm-eabi@1.2.161: The CPU architecture "x64" is incompatible with this module.
info @swc/core-darwin-arm64@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-darwin-arm64@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-darwin-arm64@1.2.161: The CPU architecture "x64" is incompatible with this module.
info @swc/core-linux-arm64-musl@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-linux-arm64-musl@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm64-musl@1.2.161: The CPU architecture "x64" is incompatible with this module.
info @swc/core-android-arm64@1.2.161: The platform "win32" is incompatible with this module.
info "@swc/core-android-arm64@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-android-arm64@1.2.161: The CPU architecture "x64" is incompatible with this module.
info @swc/core-win32-arm64-msvc@1.2.161: The CPU architecture "x64" is incompatible with this module.
info "@swc/core-win32-arm64-msvc@1.2.161" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/routing-local-proxy-linux-x64@0.34.1: The platform "win32" is incompatible with this module.
info "@netlify/routing-local-proxy-linux-x64@0.34.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/routing-local-proxy-darwin-arm64@0.34.1: The platform "win32" is incompatible with this module.
info "@netlify/routing-local-proxy-darwin-arm64@0.34.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/routing-local-proxy-darwin-arm64@0.34.1: The CPU architecture "x64" is incompatible with this module.
info @netlify/routing-local-proxy-darwin-x64@0.34.1: The platform "win32" is incompatible with this module.
info "@netlify/routing-local-proxy-darwin-x64@0.34.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-darwin-arm64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-darwin-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-darwin-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module.
info @netlify/local-functions-proxy-freebsd-x64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-freebsd-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-linux-arm64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-linux-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-linux-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module.
info @netlify/local-functions-proxy-freebsd-arm64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-freebsd-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-freebsd-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module.
info @netlify/local-functions-proxy-darwin-x64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-darwin-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-linux-ia32@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-linux-ia32@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-linux-ia32@1.1.1: The CPU architecture "x64" is incompatible with this module.
info @netlify/local-functions-proxy-linux-arm@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-linux-arm@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-linux-arm@1.1.1: The CPU architecture "x64" is incompatible with this module.
info @netlify/local-functions-proxy-linux-ppc64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-linux-ppc64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-linux-ppc64@1.1.1: The CPU architecture "x64" is incompatible with this module.
info @netlify/local-functions-proxy-openbsd-x64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-openbsd-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-win32-ia32@1.1.1: The CPU architecture "x64" is incompatible with this module.
info "@netlify/local-functions-proxy-win32-ia32@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @netlify/local-functions-proxy-linux-x64@1.1.1: The platform "win32" is incompatible with this module.
info "@netlify/local-functions-proxy-linux-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > jest-serializer-react-helmet-async@1.0.21" has unmet peer dependency "react-helmet-async@*".
warning "workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > @docusaurus/plugin-ideal-image > @endiliey/react-ideal-image@0.0.11" has unmet peer dependency "prop-types@>=15".
warning "workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > website > raw-loader@4.0.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > website > swc-loader@0.1.15" has unmet peer dependency "webpack@>=2".
warning "workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > @docusaurus/theme-live-codeblock > react-live > react-simple-code-editor@0.10.0" has incorrect peer dependency "react@^16.0.0".
warning "workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > @docusaurus/theme-live-codeblock > react-live > react-simple-code-editor@0.10.0" has incorrect peer dependency "react-dom@^16.0.0".
warning "workspace-aggregator-dc54c88f-e8f4-4e01-abb1-c7677bacb0e2 > @docusaurus/theme-search-algolia > @docsearch/react > @algolia/autocomplete-preset-algolia@1.5.2" has unmet peer dependency "@algolia/client-search@^4.9.1".
[4/4] Building fresh packages...
success Saved lockfile.
$ yarn lock:update && yarn build:packages
yarn run v1.22.5
$ npx yarn-deduplicate
Done in 1.64s.
yarn run v1.22.5
$ lerna run build --no-private
lerna notice cli v4.0.0
lerna info Executing command in 26 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@docusaurus/utils-common' in 5.0s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/logger' in 5.1s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/remark-plugin-npm2yarn' in 5.1s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/lqip-loader' in 3.0s:
$ tsc
lerna info run Ran npm script 'build' in 'create-docusaurus' in 3.1s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/utils' in 3.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-validation' in 2.9s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/mdx-loader' in 3.3s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/migrate' in 3.3s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/core' in 10.4s:
$ tsc -p tsconfig.server.json && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-client-redirects' in 3.4s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-analytics' in 4.2s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-gtag' in 4.2s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-translations' in 4.2s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/plugin-sitemap' in 4.4s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-pages' in 4.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-debug' in 4.8s:
$ tsc && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-blog' in 5.0s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-docs' in 5.2s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-common' in 4.4s:
$ node copyUntypedFiles.mjs && tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-ideal-image' in 6.8s:
$ yarn build:server && yarn build:browser && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\index.js 201ms
lib\theme\IdealImage\index.js 28ms
lerna info run Ran npm script 'build' in '@docusaurus/plugin-pwa' in 6.8s:
$ yarn build:server && yarn build:browser && yarn build:copy
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/theme-live-codeblock' in 7.8s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\custom-buble.js 58ms
lib\index.js 17ms
lib\theme\CodeBlock\index.js 7ms
lib\theme\Playground\index.js 23ms
lib\theme\ReactLiveScope\index.js 2ms
lib\validateThemeConfig.js 9ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-search-algolia' in 8.2s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\client\index.js 46ms
lib\client\useAlgoliaContextualFacetFilters.js 19ms
lib\index.js 31ms
lib\templates\opensearch.js 4ms
lib\theme\SearchBar\index.js 45ms
lib\theme\SearchPage\index.js 85ms
lib\validateThemeConfig.js 20ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-classic' in 14.1s:
$ tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn format:lib-next
$ cross-env BABEL_ENV=lib babel src -d lib --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (3591ms).
$ cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (921ms).
$ prettier --config ../../.prettierrc --write "lib-next/**/*.{js,ts,jsx,tsc}"
lib-next\__tests__\translations.test.js 83ms
lib-next\__tests__\validateThemeConfig.test.js 88ms
lib-next\deps.d.ts 368ms
lib-next\getSwizzleConfig.js 19ms
lib-next\index.js 28ms
lib-next\prism-include-languages.js 2ms
lib-next\theme-classic.d.ts 186ms
lib-next\theme\Admonition\index.js 20ms
lib-next\theme\AnnouncementBar\index.js 7ms
lib-next\theme\BackToTopButton\index.js 3ms
lib-next\theme\BlogArchivePage\index.js 14ms
lib-next\theme\BlogLayout\index.js 6ms
lib-next\theme\BlogListPage\index.js 11ms
lib-next\theme\BlogListPaginator\index.js 10ms
lib-next\theme\BlogPostAuthor\index.js 8ms
lib-next\theme\BlogPostAuthors\index.js 6ms
lib-next\theme\BlogPostItem\index.js 16ms
lib-next\theme\BlogPostPage\index.js 11ms
lib-next\theme\BlogPostPaginator\index.js 4ms
lib-next\theme\BlogSidebar\index.js 4ms
lib-next\theme\BlogTagsListPage\index.js 4ms
lib-next\theme\BlogTagsPostsPage\index.js 5ms
lib-next\theme\CodeBlock\CopyButton\index.js 5ms
lib-next\theme\CodeBlock\index.js 12ms
lib-next\theme\ColorModeToggle\index.js 5ms
lib-next\theme\Details\index.js 3ms
lib-next\theme\DocBreadcrumbs\index.js 7ms
lib-next\theme\DocCard\index.js 7ms
lib-next\theme\DocCardList\index.js 4ms
lib-next\theme\DocCategoryGeneratedIndexPage\index.js 6ms
lib-next\theme\DocItem\index.js 12ms
lib-next\theme\DocItemFooter\index.js 8ms
lib-next\theme\DocPage\index.js 7ms
lib-next\theme\DocPage\Layout\Aside.js 7ms
lib-next\theme\DocPage\Layout\index.js 4ms
lib-next\theme\DocPage\Layout\Main.js 3ms
lib-next\theme\DocPaginator\index.js 3ms
lib-next\theme\DocSidebar\Desktop\CollapseButton\index.js 3ms
lib-next\theme\DocSidebar\Desktop\Content\index.js 3ms
lib-next\theme\DocSidebar\Desktop\index.js 3ms
lib-next\theme\DocSidebar\index.js 3ms
lib-next\theme\DocSidebar\Mobile\index.js 4ms
lib-next\theme\DocSidebarItem\Category.js 14ms
lib-next\theme\DocSidebarItem\Html.js 2ms
lib-next\theme\DocSidebarItem\index.js 2ms
lib-next\theme\DocSidebarItem\Link.js 4ms
lib-next\theme\DocSidebarItems\index.js 4ms
lib-next\theme\DocTagDocListPage\index.js 7ms
lib-next\theme\DocTagsListPage\index.js 6ms
lib-next\theme\DocVersionBadge\index.js 3ms
lib-next\theme\DocVersionBanner\index.js 9ms
lib-next\theme\EditThisPage\index.js 5ms
lib-next\theme\ErrorPageContent.js 2ms
lib-next\theme\Footer\Copyright\index.js 2ms
lib-next\theme\Footer\index.js 4ms
lib-next\theme\Footer\Layout\index.js 2ms
lib-next\theme\Footer\LinkItem\index.js 2ms
lib-next\theme\Footer\Links\index.js 1ms
lib-next\theme\Footer\Links\MultiColumn\index.js 3ms
lib-next\theme\Footer\Links\Simple\index.js 3ms
lib-next\theme\Footer\Logo\index.js 3ms
lib-next\theme\Heading\index.js 4ms
lib-next\theme\IconArrow\index.js 2ms
lib-next\theme\IconClose\index.js 2ms
lib-next\theme\IconDarkMode\index.js 2ms
lib-next\theme\IconEdit\index.js 1ms
lib-next\theme\IconExternalLink\index.js 2ms
lib-next\theme\IconLanguage\index.js 2ms
lib-next\theme\IconLightMode\index.js 2ms
lib-next\theme\IconMenu\index.js 2ms
lib-next\theme\LastUpdated\index.js 4ms
lib-next\theme\Layout\index.js 3ms
lib-next\theme\LayoutProviders\index.js 3ms
lib-next\theme\Logo\index.js 5ms
lib-next\theme\MDXComponents\A.js 1ms
lib-next\theme\MDXComponents\Code.js 2ms
lib-next\theme\MDXComponents\Details.js 2ms
lib-next\theme\MDXComponents\Head.js 3ms
lib-next\theme\MDXComponents\Heading.js 2ms
lib-next\theme\MDXComponents\Img.js 2ms
lib-next\theme\MDXComponents\index.js 2ms
lib-next\theme\MDXComponents\Pre.js 1ms
lib-next\theme\MDXComponents\Ul.js 2ms
lib-next\theme\MDXContent\index.js 2ms
lib-next\theme\MDXPage\index.js 7ms
lib-next\theme\Navbar\ColorModeToggle\index.js 3ms
lib-next\theme\Navbar\Content\index.js 4ms
lib-next\theme\Navbar\index.js 1ms
lib-next\theme\Navbar\Layout\index.js 3ms
lib-next\theme\Navbar\Logo\index.js 1ms
lib-next\theme\Navbar\MobileSidebar\Header\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\index.js 4ms
lib-next\theme\Navbar\MobileSidebar\Layout\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\PrimaryMenu\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\SecondaryMenu\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\Toggle\index.js 5ms
lib-next\theme\NavbarItem\DefaultNavbarItem.js 4ms
lib-next\theme\NavbarItem\DocNavbarItem.js 6ms
lib-next\theme\NavbarItem\DocSidebarNavbarItem.js 8ms
lib-next\theme\NavbarItem\DocsVersionDropdownNavbarItem.js 12ms
lib-next\theme\NavbarItem\DocsVersionNavbarItem.js 8ms
lib-next\theme\NavbarItem\DropdownNavbarItem.js 15ms
lib-next\theme\NavbarItem\index.js 5ms
lib-next\theme\NavbarItem\LocaleDropdownNavbarItem\index.js 5ms
lib-next\theme\NavbarItem\NavbarNavLink.js 3ms
lib-next\theme\NavbarItem\SearchNavbarItem.js 2ms
lib-next\theme\NavbarItem\utils.js 1ms
lib-next\theme\NotFound.js 3ms
lib-next\theme\PaginatorNavLink\index.js 2ms
lib-next\theme\prism-include-languages.js 2ms
lib-next\theme\SearchBar.js 1ms
lib-next\theme\SearchMetadata\index.js 3ms
lib-next\theme\SiteMetadata\index.js 7ms
lib-next\theme\SkipToContent\index.js 7ms
lib-next\theme\TabItem\index.js 3ms
lib-next\theme\Tabs\__tests__\index.test.js 11ms
lib-next\theme\Tabs\index.js 15ms
lib-next\theme\Tag\index.js 2ms
lib-next\theme\TagsListByLetter\index.js 2ms
lib-next\theme\TagsListInline\index.js 2ms
lib-next\theme\ThemedImage\index.js 4ms
lib-next\theme\TOC\index.js 1ms
lib-next\theme\TOCCollapsible\index.js 5ms
lib-next\theme\TOCInline\index.js 2ms
lib-next\theme\TOCItems\index.js 5ms
lib-next\translations.js 13ms
lib-next\validateThemeConfig.js 32ms
lerna info run Ran npm script 'build' in '@docusaurus/preset-classic' in 2.6s:
$ tsc
lerna success run Ran npm script 'build' in 26 packages in 48.7s:
lerna success - create-docusaurus
lerna success - @docusaurus/logger
lerna success - @docusaurus/mdx-loader
lerna success - @docusaurus/migrate
lerna success - @docusaurus/plugin-client-redirects
lerna success - @docusaurus/plugin-content-blog
lerna success - @docusaurus/plugin-content-docs
lerna success - @docusaurus/plugin-content-pages
lerna success - @docusaurus/plugin-debug
lerna success - @docusaurus/plugin-google-analytics
lerna success - @docusaurus/plugin-google-gtag
lerna success - @docusaurus/plugin-ideal-image
lerna success - @docusaurus/plugin-pwa
lerna success - @docusaurus/plugin-sitemap
lerna success - @docusaurus/preset-classic
lerna success - @docusaurus/remark-plugin-npm2yarn
lerna success - @docusaurus/theme-classic
lerna success - @docusaurus/theme-common
lerna success - @docusaurus/theme-live-codeblock
lerna success - @docusaurus/theme-search-algolia
lerna success - @docusaurus/theme-translations
lerna success - @docusaurus/utils-common
lerna success - @docusaurus/utils-validation
lerna success - @docusaurus/utils
lerna success - @docusaurus/core
lerna success - @docusaurus/lqip-loader
Done in 50.06s.
$ husky install
husky - Git hooks installed
Done in 301.46s.
PS E:\nodejs\docusaurus> yarn start
yarn run v1.22.5
$ yarn build:packages && yarn start:website
$ lerna run build --no-private
lerna notice cli v4.0.0
lerna info Executing command in 26 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@docusaurus/logger' in 2.4s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/remark-plugin-npm2yarn' in 2.4s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-common' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/lqip-loader' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in 'create-docusaurus' in 2.5s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/utils' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-validation' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/migrate' in 2.7s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/mdx-loader' in 2.7s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/core' in 5.0s:
$ tsc -p tsconfig.server.json && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-client-redirects' in 2.9s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-gtag' in 3.8s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-sitemap' in 3.9s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-blog' in 4.0s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-pages' in 4.0s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-analytics' in 4.0s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-debug' in 4.0s:
$ tsc && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-docs' in 4.1s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-translations' in 4.0s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/theme-common' in 2.8s:
$ node copyUntypedFiles.mjs && tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-ideal-image' in 6.9s:
$ yarn build:server && yarn build:browser && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\index.js 80ms
lib\theme\IdealImage\index.js 30ms
lerna info run Ran npm script 'build' in '@docusaurus/plugin-pwa' in 6.9s:
$ yarn build:server && yarn build:browser && yarn build:copy
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/theme-live-codeblock' in 7.9s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\custom-buble.js 61ms
lib\index.js 17ms
lib\theme\CodeBlock\index.js 7ms
lib\theme\Playground\index.js 25ms
lib\theme\ReactLiveScope\index.js 2ms
lib\validateThemeConfig.js 9ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-search-algolia' in 8.3s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\client\index.js 44ms
lib\client\useAlgoliaContextualFacetFilters.js 17ms
lib\index.js 30ms
lib\templates\opensearch.js 4ms
lib\theme\SearchBar\index.js 39ms
lib\theme\SearchPage\index.js 91ms
lib\validateThemeConfig.js 20ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-classic' in 11.3s:
$ tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn format:lib-next
$ cross-env BABEL_ENV=lib babel src -d lib --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (1655ms).
$ cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (860ms).
$ prettier --config ../../.prettierrc --write "lib-next/**/*.{js,ts,jsx,tsc}"
lib-next\__tests__\translations.test.js 79ms
lib-next\__tests__\validateThemeConfig.test.js 84ms
lib-next\deps.d.ts 329ms
lib-next\getSwizzleConfig.js 19ms
lib-next\index.js 27ms
lib-next\prism-include-languages.js 2ms
lib-next\theme-classic.d.ts 188ms
lib-next\theme\Admonition\index.js 20ms
lib-next\theme\AnnouncementBar\index.js 6ms
lib-next\theme\BackToTopButton\index.js 4ms
lib-next\theme\BlogArchivePage\index.js 14ms
lib-next\theme\BlogLayout\index.js 5ms
lib-next\theme\BlogListPage\index.js 11ms
lib-next\theme\BlogListPaginator\index.js 9ms
lib-next\theme\BlogPostAuthor\index.js 8ms
lib-next\theme\BlogPostAuthors\index.js 6ms
lib-next\theme\BlogPostItem\index.js 16ms
lib-next\theme\BlogPostPage\index.js 10ms
lib-next\theme\BlogPostPaginator\index.js 4ms
lib-next\theme\BlogSidebar\index.js 3ms
lib-next\theme\BlogTagsListPage\index.js 4ms
lib-next\theme\BlogTagsPostsPage\index.js 5ms
lib-next\theme\CodeBlock\CopyButton\index.js 5ms
lib-next\theme\CodeBlock\index.js 11ms
lib-next\theme\ColorModeToggle\index.js 5ms
lib-next\theme\Details\index.js 3ms
lib-next\theme\DocBreadcrumbs\index.js 8ms
lib-next\theme\DocCard\index.js 7ms
lib-next\theme\DocCardList\index.js 4ms
lib-next\theme\DocCategoryGeneratedIndexPage\index.js 5ms
lib-next\theme\DocItem\index.js 13ms
lib-next\theme\DocItemFooter\index.js 9ms
lib-next\theme\DocPage\index.js 6ms
lib-next\theme\DocPage\Layout\Aside.js 6ms
lib-next\theme\DocPage\Layout\index.js 4ms
lib-next\theme\DocPage\Layout\Main.js 3ms
lib-next\theme\DocPaginator\index.js 4ms
lib-next\theme\DocSidebar\Desktop\CollapseButton\index.js 3ms
lib-next\theme\DocSidebar\Desktop\Content\index.js 3ms
lib-next\theme\DocSidebar\Desktop\index.js 2ms
lib-next\theme\DocSidebar\index.js 2ms
lib-next\theme\DocSidebar\Mobile\index.js 3ms
lib-next\theme\DocSidebarItem\Category.js 13ms
lib-next\theme\DocSidebarItem\Html.js 3ms
lib-next\theme\DocSidebarItem\index.js 2ms
lib-next\theme\DocSidebarItem\Link.js 4ms
lib-next\theme\DocSidebarItems\index.js 6ms
lib-next\theme\DocTagDocListPage\index.js 6ms
lib-next\theme\DocTagsListPage\index.js 7ms
lib-next\theme\DocVersionBadge\index.js 3ms
lib-next\theme\DocVersionBanner\index.js 8ms
lib-next\theme\EditThisPage\index.js 2ms
lib-next\theme\ErrorPageContent.js 2ms
lib-next\theme\Footer\Copyright\index.js 3ms
lib-next\theme\Footer\index.js 3ms
lib-next\theme\Footer\Layout\index.js 2ms
lib-next\theme\Footer\LinkItem\index.js 3ms
lib-next\theme\Footer\Links\index.js 2ms
lib-next\theme\Footer\Links\MultiColumn\index.js 3ms
lib-next\theme\Footer\Links\Simple\index.js 3ms
lib-next\theme\Footer\Logo\index.js 2ms
lib-next\theme\Heading\index.js 4ms
lib-next\theme\IconArrow\index.js 2ms
lib-next\theme\IconClose\index.js 2ms
lib-next\theme\IconDarkMode\index.js 2ms
lib-next\theme\IconEdit\index.js 2ms
lib-next\theme\IconExternalLink\index.js 1ms
lib-next\theme\IconLanguage\index.js 2ms
lib-next\theme\IconLightMode\index.js 2ms
lib-next\theme\IconMenu\index.js 2ms
lib-next\theme\LastUpdated\index.js 4ms
lib-next\theme\Layout\index.js 3ms
lib-next\theme\LayoutProviders\index.js 3ms
lib-next\theme\Logo\index.js 6ms
lib-next\theme\MDXComponents\A.js 2ms
lib-next\theme\MDXComponents\Code.js 2ms
lib-next\theme\MDXComponents\Details.js 3ms
lib-next\theme\MDXComponents\Head.js 2ms
lib-next\theme\MDXComponents\Heading.js 2ms
lib-next\theme\MDXComponents\Img.js 2ms
lib-next\theme\MDXComponents\index.js 3ms
lib-next\theme\MDXComponents\Pre.js 1ms
lib-next\theme\MDXComponents\Ul.js 3ms
lib-next\theme\MDXContent\index.js 2ms
lib-next\theme\MDXPage\index.js 6ms
lib-next\theme\Navbar\ColorModeToggle\index.js 3ms
lib-next\theme\Navbar\Content\index.js 4ms
lib-next\theme\Navbar\index.js 2ms
lib-next\theme\Navbar\Layout\index.js 3ms
lib-next\theme\Navbar\Logo\index.js 1ms
lib-next\theme\Navbar\MobileSidebar\Header\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Layout\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\PrimaryMenu\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\SecondaryMenu\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Toggle\index.js 5ms
lib-next\theme\NavbarItem\DefaultNavbarItem.js 3ms
lib-next\theme\NavbarItem\DocNavbarItem.js 5ms
lib-next\theme\NavbarItem\DocSidebarNavbarItem.js 8ms
lib-next\theme\NavbarItem\DocsVersionDropdownNavbarItem.js 11ms
lib-next\theme\NavbarItem\DocsVersionNavbarItem.js 7ms
lib-next\theme\NavbarItem\DropdownNavbarItem.js 13ms
lib-next\theme\NavbarItem\index.js 5ms
lib-next\theme\NavbarItem\LocaleDropdownNavbarItem\index.js 5ms
lib-next\theme\NavbarItem\NavbarNavLink.js 4ms
lib-next\theme\NavbarItem\SearchNavbarItem.js 1ms
lib-next\theme\NavbarItem\utils.js 1ms
lib-next\theme\NotFound.js 2ms
lib-next\theme\PaginatorNavLink\index.js 2ms
lib-next\theme\prism-include-languages.js 2ms
lib-next\theme\SearchBar.js 1ms
lib-next\theme\SearchMetadata\index.js 2ms
lib-next\theme\SiteMetadata\index.js 7ms
lib-next\theme\SkipToContent\index.js 8ms
lib-next\theme\TabItem\index.js 2ms
lib-next\theme\Tabs\__tests__\index.test.js 10ms
lib-next\theme\Tabs\index.js 13ms
lib-next\theme\Tag\index.js 2ms
lib-next\theme\TagsListByLetter\index.js 3ms
lib-next\theme\TagsListInline\index.js 2ms
lib-next\theme\ThemedImage\index.js 3ms
lib-next\theme\TOC\index.js 2ms
lib-next\theme\TOCCollapsible\index.js 4ms
lib-next\theme\TOCInline\index.js 1ms
lib-next\theme\TOCItems\index.js 5ms
lib-next\translations.js 12ms
lib-next\validateThemeConfig.js 30ms
lerna info run Ran npm script 'build' in '@docusaurus/preset-classic' in 2.4s:
$ tsc
lerna success run Ran npm script 'build' in 26 packages in 33.3s:
lerna success - create-docusaurus
lerna success - @docusaurus/logger
lerna success - @docusaurus/mdx-loader
lerna success - @docusaurus/migrate
lerna success - @docusaurus/plugin-client-redirects
lerna success - @docusaurus/plugin-content-blog
lerna success - @docusaurus/plugin-content-docs
lerna success - @docusaurus/plugin-content-pages
lerna success - @docusaurus/plugin-debug
lerna success - @docusaurus/plugin-google-analytics
lerna success - @docusaurus/plugin-google-gtag
lerna success - @docusaurus/plugin-ideal-image
lerna success - @docusaurus/plugin-pwa
lerna success - @docusaurus/plugin-sitemap
lerna success - @docusaurus/preset-classic
lerna success - @docusaurus/remark-plugin-npm2yarn
lerna success - @docusaurus/theme-classic
lerna success - @docusaurus/theme-common
lerna success - @docusaurus/theme-live-codeblock
lerna success - @docusaurus/theme-search-algolia
lerna success - @docusaurus/theme-translations
lerna success - @docusaurus/utils-common
lerna success - @docusaurus/utils-validation
lerna success - @docusaurus/utils
lerna success - @docusaurus/core
lerna success - @docusaurus/lqip-loader
$ yarn workspace website start
$ docusaurus start
[INFO] Starting the development server...
[ERROR] Loading of version failed for version current
[ERROR] Error: The `cwd` option must be a path to a directory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: D:\scoop\apps\nodejs-lts\current\node.exe
Arguments: D:\scoop\persist\nodejs-lts\bin\node_modules\yarn\lib\cli.js start
Directory: E:\nodejs\docusaurus\website
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS E:\nodejs\docusaurus>

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used: latest
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): v16.14.2
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS): windows11 or wsl2-ubuntu or wsl2-arch

Self-service

  • I'd be willing to fix this bug myself.
@danyow danyow added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 29, 2022
@Josh-Cena
Copy link
Collaborator

Hi, since you already have hold of the source code, could you add a console.log(versionMetadata.contentPath); before this line:

const sources = await Globby(options.include, {
cwd: versionMetadata.contentPath,
ignore: options.exclude,
});

Recompile, and re-build?

@danyow
Copy link
Author

danyow commented Mar 29, 2022

export async function readVersionDocs(
  versionMetadata: VersionMetadata,
  options: Pick<
    PluginOptions,
    'include' | 'exclude' | 'showLastUpdateAuthor' | 'showLastUpdateTime'
  >,
): Promise<DocFile[]> {
  console.log(versionMetadata.contentPath);
  const sources = await Globby(options.include, {
    cwd: versionMetadata.contentPath,
    ignore: options.exclude,
  });
  return Promise.all(
    sources.map((source) => readDocFile(versionMetadata, source, options)),
  );
}
Log
PS E:\nodejs\docusaurus> yarn
yarn install v1.22.5
[1/4] Resolving packages...
success Already up-to-date.
$ yarn lock:update && yarn build:packages
yarn run v1.22.5
$ npx yarn-deduplicate
Done in 1.12s.
yarn run v1.22.5
$ lerna run build --no-private
lerna notice cli v4.0.0
lerna info Executing command in 26 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@docusaurus/logger' in 2.4s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-common' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/remark-plugin-npm2yarn' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/lqip-loader' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in 'create-docusaurus' in 2.5s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/utils' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/mdx-loader' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-validation' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/migrate' in 2.6s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/core' in 5.0s:
$ tsc -p tsconfig.server.json && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-client-redirects' in 3.0s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-gtag' in 3.8s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-analytics' in 3.9s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-translations' in 4.0s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/plugin-sitemap' in 4.1s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-pages' in 4.2s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-debug' in 4.4s:
$ tsc && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-blog' in 4.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-docs' in 4.8s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-common' in 4.3s:
$ node copyUntypedFiles.mjs && tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-ideal-image' in 6.9s:
$ yarn build:server && yarn build:browser && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\index.js 181ms
lib\theme\IdealImage\index.js 30ms
lerna info run Ran npm script 'build' in '@docusaurus/plugin-pwa' in 7.1s:
$ yarn build:server && yarn build:browser && yarn build:copy
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/theme-live-codeblock' in 8.0s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\custom-buble.js 58ms
lib\index.js 16ms
lib\theme\CodeBlock\index.js 7ms
lib\theme\Playground\index.js 22ms
lib\theme\ReactLiveScope\index.js 3ms
lib\validateThemeConfig.js 9ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-search-algolia' in 8.7s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\client\index.js 41ms
lib\client\useAlgoliaContextualFacetFilters.js 17ms
lib\index.js 30ms
lib\templates\opensearch.js 4ms
lib\theme\SearchBar\index.js 38ms
lib\theme\SearchPage\index.js 83ms
lib\validateThemeConfig.js 22ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-classic' in 14.1s:
$ tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn format:lib-next
$ cross-env BABEL_ENV=lib babel src -d lib --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (3402ms).
$ cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (877ms).
$ prettier --config ../../.prettierrc --write "lib-next/**/*.{js,ts,jsx,tsc}"
lib-next\__tests__\translations.test.js 75ms
lib-next\__tests__\validateThemeConfig.test.js 84ms
lib-next\deps.d.ts 363ms
lib-next\getSwizzleConfig.js 19ms
lib-next\index.js 27ms
lib-next\prism-include-languages.js 2ms
lib-next\theme-classic.d.ts 181ms
lib-next\theme\Admonition\index.js 20ms
lib-next\theme\AnnouncementBar\index.js 7ms
lib-next\theme\BackToTopButton\index.js 3ms
lib-next\theme\BlogArchivePage\index.js 14ms
lib-next\theme\BlogLayout\index.js 6ms
lib-next\theme\BlogListPage\index.js 11ms
lib-next\theme\BlogListPaginator\index.js 9ms
lib-next\theme\BlogPostAuthor\index.js 7ms
lib-next\theme\BlogPostAuthors\index.js 7ms
lib-next\theme\BlogPostItem\index.js 15ms
lib-next\theme\BlogPostPage\index.js 10ms
lib-next\theme\BlogPostPaginator\index.js 5ms
lib-next\theme\BlogSidebar\index.js 4ms
lib-next\theme\BlogTagsListPage\index.js 4ms
lib-next\theme\BlogTagsPostsPage\index.js 4ms
lib-next\theme\CodeBlock\CopyButton\index.js 4ms
lib-next\theme\CodeBlock\index.js 13ms
lib-next\theme\ColorModeToggle\index.js 6ms
lib-next\theme\Details\index.js 2ms
lib-next\theme\DocBreadcrumbs\index.js 6ms
lib-next\theme\DocCard\index.js 7ms
lib-next\theme\DocCardList\index.js 4ms
lib-next\theme\DocCategoryGeneratedIndexPage\index.js 6ms
lib-next\theme\DocItem\index.js 12ms
lib-next\theme\DocItemFooter\index.js 8ms
lib-next\theme\DocPage\index.js 6ms
lib-next\theme\DocPage\Layout\Aside.js 7ms
lib-next\theme\DocPage\Layout\index.js 3ms
lib-next\theme\DocPage\Layout\Main.js 3ms
lib-next\theme\DocPaginator\index.js 2ms
lib-next\theme\DocSidebar\Desktop\CollapseButton\index.js 2ms
lib-next\theme\DocSidebar\Desktop\Content\index.js 3ms
lib-next\theme\DocSidebar\Desktop\index.js 2ms
lib-next\theme\DocSidebar\index.js 3ms
lib-next\theme\DocSidebar\Mobile\index.js 4ms
lib-next\theme\DocSidebarItem\Category.js 13ms
lib-next\theme\DocSidebarItem\Html.js 2ms
lib-next\theme\DocSidebarItem\index.js 2ms
lib-next\theme\DocSidebarItem\Link.js 4ms
lib-next\theme\DocSidebarItems\index.js 3ms
lib-next\theme\DocTagDocListPage\index.js 6ms
lib-next\theme\DocTagsListPage\index.js 7ms
lib-next\theme\DocVersionBadge\index.js 3ms
lib-next\theme\DocVersionBanner\index.js 7ms
lib-next\theme\EditThisPage\index.js 3ms
lib-next\theme\ErrorPageContent.js 2ms
lib-next\theme\Footer\Copyright\index.js 3ms
lib-next\theme\Footer\index.js 2ms
lib-next\theme\Footer\Layout\index.js 3ms
lib-next\theme\Footer\LinkItem\index.js 2ms
lib-next\theme\Footer\Links\index.js 2ms
lib-next\theme\Footer\Links\MultiColumn\index.js 3ms
lib-next\theme\Footer\Links\Simple\index.js 2ms
lib-next\theme\Footer\Logo\index.js 3ms
lib-next\theme\Heading\index.js 3ms
lib-next\theme\IconArrow\index.js 8ms
lib-next\theme\IconClose\index.js 3ms
lib-next\theme\IconDarkMode\index.js 1ms
lib-next\theme\IconEdit\index.js 2ms
lib-next\theme\IconExternalLink\index.js 2ms
lib-next\theme\IconLanguage\index.js 2ms
lib-next\theme\IconLightMode\index.js 2ms
lib-next\theme\IconMenu\index.js 2ms
lib-next\theme\LastUpdated\index.js 3ms
lib-next\theme\Layout\index.js 2ms
lib-next\theme\LayoutProviders\index.js 1ms
lib-next\theme\Logo\index.js 8ms
lib-next\theme\MDXComponents\A.js 2ms
lib-next\theme\MDXComponents\Code.js 3ms
lib-next\theme\MDXComponents\Details.js 2ms
lib-next\theme\MDXComponents\Head.js 2ms
lib-next\theme\MDXComponents\Heading.js 2ms
lib-next\theme\MDXComponents\Img.js 2ms
lib-next\theme\MDXComponents\index.js 2ms
lib-next\theme\MDXComponents\Pre.js 1ms
lib-next\theme\MDXComponents\Ul.js 2ms
lib-next\theme\MDXContent\index.js 2ms
lib-next\theme\MDXPage\index.js 7ms
lib-next\theme\Navbar\ColorModeToggle\index.js 3ms
lib-next\theme\Navbar\Content\index.js 5ms
lib-next\theme\Navbar\index.js 1ms
lib-next\theme\Navbar\Layout\index.js 3ms
lib-next\theme\Navbar\Logo\index.js 1ms
lib-next\theme\Navbar\MobileSidebar\Header\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Layout\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\PrimaryMenu\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\SecondaryMenu\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Toggle\index.js 2ms
lib-next\theme\NavbarItem\DefaultNavbarItem.js 3ms
lib-next\theme\NavbarItem\DocNavbarItem.js 4ms
lib-next\theme\NavbarItem\DocSidebarNavbarItem.js 8ms
lib-next\theme\NavbarItem\DocsVersionDropdownNavbarItem.js 9ms
lib-next\theme\NavbarItem\DocsVersionNavbarItem.js 8ms
lib-next\theme\NavbarItem\DropdownNavbarItem.js 11ms
lib-next\theme\NavbarItem\index.js 4ms
lib-next\theme\NavbarItem\LocaleDropdownNavbarItem\index.js 4ms
lib-next\theme\NavbarItem\NavbarNavLink.js 4ms
lib-next\theme\NavbarItem\SearchNavbarItem.js 1ms
lib-next\theme\NavbarItem\utils.js 2ms
lib-next\theme\NotFound.js 2ms
lib-next\theme\PaginatorNavLink\index.js 2ms
lib-next\theme\prism-include-languages.js 3ms
lib-next\theme\SearchBar.js 1ms
lib-next\theme\SearchMetadata\index.js 2ms
lib-next\theme\SiteMetadata\index.js 6ms
lib-next\theme\SkipToContent\index.js 8ms
lib-next\theme\TabItem\index.js 2ms
lib-next\theme\Tabs\__tests__\index.test.js 10ms
lib-next\theme\Tabs\index.js 13ms
lib-next\theme\Tag\index.js 3ms
lib-next\theme\TagsListByLetter\index.js 3ms
lib-next\theme\TagsListInline\index.js 2ms
lib-next\theme\ThemedImage\index.js 2ms
lib-next\theme\TOC\index.js 2ms
lib-next\theme\TOCCollapsible\index.js 3ms
lib-next\theme\TOCInline\index.js 2ms
lib-next\theme\TOCItems\index.js 4ms
lib-next\translations.js 12ms
lib-next\validateThemeConfig.js 37ms
lerna info run Ran npm script 'build' in '@docusaurus/preset-classic' in 2.5s:
$ tsc
lerna success run Ran npm script 'build' in 26 packages in 38.3s:
lerna success - create-docusaurus
lerna success - @docusaurus/logger
lerna success - @docusaurus/mdx-loader
lerna success - @docusaurus/migrate
lerna success - @docusaurus/plugin-client-redirects
lerna success - @docusaurus/plugin-content-blog
lerna success - @docusaurus/plugin-content-docs
lerna success - @docusaurus/plugin-content-pages
lerna success - @docusaurus/plugin-debug
lerna success - @docusaurus/plugin-google-analytics
lerna success - @docusaurus/plugin-google-gtag
lerna success - @docusaurus/plugin-ideal-image
lerna success - @docusaurus/plugin-pwa
lerna success - @docusaurus/plugin-sitemap
lerna success - @docusaurus/preset-classic
lerna success - @docusaurus/remark-plugin-npm2yarn
lerna success - @docusaurus/theme-classic
lerna success - @docusaurus/theme-common
lerna success - @docusaurus/theme-live-codeblock
lerna success - @docusaurus/theme-search-algolia
lerna success - @docusaurus/theme-translations
lerna success - @docusaurus/utils-common
lerna success - @docusaurus/utils-validation
lerna success - @docusaurus/utils
lerna success - @docusaurus/core
lerna success - @docusaurus/lqip-loader
Done in 38.76s.
$ husky install
husky - Git hooks installed
Done in 41.11s.
PS E:\nodejs\docusaurus> yarn start
yarn run v1.22.5
$ yarn build:packages && yarn start:website
$ lerna run build --no-private
lerna notice cli v4.0.0
lerna info Executing command in 26 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@docusaurus/utils-common' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/logger' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/remark-plugin-npm2yarn' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in 'create-docusaurus' in 2.4s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/lqip-loader' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/utils-validation' in 2.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/mdx-loader' in 2.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/migrate' in 2.6s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/core' in 5.0s:
$ tsc -p tsconfig.server.json && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-client-redirects' in 3.3s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-gtag' in 4.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-sitemap' in 4.5s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-translations' in 4.5s:
$ tsc -p tsconfig.build.json
lerna info run Ran npm script 'build' in '@docusaurus/plugin-google-analytics' in 4.6s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-blog' in 4.7s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-pages' in 4.7s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-debug' in 4.7s:
$ tsc && node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/plugin-content-docs' in 4.9s:
$ tsc
lerna info run Ran npm script 'build' in '@docusaurus/theme-common' in 2.9s:
$ node copyUntypedFiles.mjs && tsc
lerna info run Ran npm script 'build' in '@docusaurus/plugin-ideal-image' in 7.2s:
$ yarn build:server && yarn build:browser && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\index.js 73ms
lib\theme\IdealImage\index.js 27ms
lerna info run Ran npm script 'build' in '@docusaurus/plugin-pwa' in 6.9s:
$ yarn build:server && yarn build:browser && yarn build:copy
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.browser.json
$ node copyUntypedFiles.mjs
lerna info run Ran npm script 'build' in '@docusaurus/theme-live-codeblock' in 8.0s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\custom-buble.js 57ms
lib\index.js 18ms
lib\theme\CodeBlock\index.js 7ms
lib\theme\Playground\index.js 23ms
lib\theme\ReactLiveScope\index.js 2ms
lib\validateThemeConfig.js 10ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-search-algolia' in 8.4s:
$ yarn build:server && yarn build:client && yarn build:copy && yarn build:format
$ tsc --project tsconfig.server.json
$ tsc --project tsconfig.client.json
$ node copyUntypedFiles.mjs
$ prettier --config ../../.prettierrc --write "lib/**/*.js"
lib\client\index.js 42ms
lib\client\useAlgoliaContextualFacetFilters.js 18ms
lib\index.js 30ms
lib\templates\opensearch.js 3ms
lib\theme\SearchBar\index.js 38ms
lib\theme\SearchPage\index.js 84ms
lib\validateThemeConfig.js 22ms
lerna info run Ran npm script 'build' in '@docusaurus/theme-classic' in 11.6s:
$ tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn format:lib-next
$ cross-env BABEL_ENV=lib babel src -d lib --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (1604ms).
$ cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions ".tsx,.ts" --ignore "**/*.d.ts" --copy-files
Successfully compiled 125 files with Babel (910ms).
$ prettier --config ../../.prettierrc --write "lib-next/**/*.{js,ts,jsx,tsc}"
lib-next\__tests__\translations.test.js 79ms
lib-next\__tests__\validateThemeConfig.test.js 86ms
lib-next\deps.d.ts 333ms
lib-next\getSwizzleConfig.js 21ms
lib-next\index.js 25ms
lib-next\prism-include-languages.js 2ms
lib-next\theme-classic.d.ts 180ms
lib-next\theme\Admonition\index.js 20ms
lib-next\theme\AnnouncementBar\index.js 7ms
lib-next\theme\BackToTopButton\index.js 4ms
lib-next\theme\BlogArchivePage\index.js 14ms
lib-next\theme\BlogLayout\index.js 7ms
lib-next\theme\BlogListPage\index.js 10ms
lib-next\theme\BlogListPaginator\index.js 9ms
lib-next\theme\BlogPostAuthor\index.js 8ms
lib-next\theme\BlogPostAuthors\index.js 7ms
lib-next\theme\BlogPostItem\index.js 17ms
lib-next\theme\BlogPostPage\index.js 8ms
lib-next\theme\BlogPostPaginator\index.js 7ms
lib-next\theme\BlogSidebar\index.js 4ms
lib-next\theme\BlogTagsListPage\index.js 4ms
lib-next\theme\BlogTagsPostsPage\index.js 4ms
lib-next\theme\CodeBlock\CopyButton\index.js 5ms
lib-next\theme\CodeBlock\index.js 12ms
lib-next\theme\ColorModeToggle\index.js 5ms
lib-next\theme\Details\index.js 3ms
lib-next\theme\DocBreadcrumbs\index.js 7ms
lib-next\theme\DocCard\index.js 7ms
lib-next\theme\DocCardList\index.js 5ms
lib-next\theme\DocCategoryGeneratedIndexPage\index.js 6ms
lib-next\theme\DocItem\index.js 13ms
lib-next\theme\DocItemFooter\index.js 8ms
lib-next\theme\DocPage\index.js 6ms
lib-next\theme\DocPage\Layout\Aside.js 6ms
lib-next\theme\DocPage\Layout\index.js 3ms
lib-next\theme\DocPage\Layout\Main.js 3ms
lib-next\theme\DocPaginator\index.js 2ms
lib-next\theme\DocSidebar\Desktop\CollapseButton\index.js 3ms
lib-next\theme\DocSidebar\Desktop\Content\index.js 3ms
lib-next\theme\DocSidebar\Desktop\index.js 3ms
lib-next\theme\DocSidebar\index.js 2ms
lib-next\theme\DocSidebar\Mobile\index.js 3ms
lib-next\theme\DocSidebarItem\Category.js 13ms
lib-next\theme\DocSidebarItem\Html.js 2ms
lib-next\theme\DocSidebarItem\index.js 2ms
lib-next\theme\DocSidebarItem\Link.js 3ms
lib-next\theme\DocSidebarItems\index.js 4ms
lib-next\theme\DocTagDocListPage\index.js 6ms
lib-next\theme\DocTagsListPage\index.js 6ms
lib-next\theme\DocVersionBadge\index.js 3ms
lib-next\theme\DocVersionBanner\index.js 8ms
lib-next\theme\EditThisPage\index.js 4ms
lib-next\theme\ErrorPageContent.js 2ms
lib-next\theme\Footer\Copyright\index.js 3ms
lib-next\theme\Footer\index.js 2ms
lib-next\theme\Footer\Layout\index.js 3ms
lib-next\theme\Footer\LinkItem\index.js 3ms
lib-next\theme\Footer\Links\index.js 2ms
lib-next\theme\Footer\Links\MultiColumn\index.js 3ms
lib-next\theme\Footer\Links\Simple\index.js 3ms
lib-next\theme\Footer\Logo\index.js 2ms
lib-next\theme\Heading\index.js 3ms
lib-next\theme\IconArrow\index.js 8ms
lib-next\theme\IconClose\index.js 2ms
lib-next\theme\IconDarkMode\index.js 2ms
lib-next\theme\IconEdit\index.js 2ms
lib-next\theme\IconExternalLink\index.js 2ms
lib-next\theme\IconLanguage\index.js 2ms
lib-next\theme\IconLightMode\index.js 1ms
lib-next\theme\IconMenu\index.js 3ms
lib-next\theme\LastUpdated\index.js 4ms
lib-next\theme\Layout\index.js 3ms
lib-next\theme\LayoutProviders\index.js 1ms
lib-next\theme\Logo\index.js 8ms
lib-next\theme\MDXComponents\A.js 2ms
lib-next\theme\MDXComponents\Code.js 3ms
lib-next\theme\MDXComponents\Details.js 2ms
lib-next\theme\MDXComponents\Head.js 2ms
lib-next\theme\MDXComponents\Heading.js 2ms
lib-next\theme\MDXComponents\Img.js 1ms
lib-next\theme\MDXComponents\index.js 3ms
lib-next\theme\MDXComponents\Pre.js 2ms
lib-next\theme\MDXComponents\Ul.js 3ms
lib-next\theme\MDXContent\index.js 2ms
lib-next\theme\MDXPage\index.js 7ms
lib-next\theme\Navbar\ColorModeToggle\index.js 3ms
lib-next\theme\Navbar\Content\index.js 4ms
lib-next\theme\Navbar\index.js 1ms
lib-next\theme\Navbar\Layout\index.js 4ms
lib-next\theme\Navbar\Logo\index.js 1ms
lib-next\theme\Navbar\MobileSidebar\Header\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Layout\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\PrimaryMenu\index.js 2ms
lib-next\theme\Navbar\MobileSidebar\SecondaryMenu\index.js 3ms
lib-next\theme\Navbar\MobileSidebar\Toggle\index.js 2ms
lib-next\theme\NavbarItem\DefaultNavbarItem.js 4ms
lib-next\theme\NavbarItem\DocNavbarItem.js 4ms
lib-next\theme\NavbarItem\DocSidebarNavbarItem.js 7ms
lib-next\theme\NavbarItem\DocsVersionDropdownNavbarItem.js 9ms
lib-next\theme\NavbarItem\DocsVersionNavbarItem.js 9ms
lib-next\theme\NavbarItem\DropdownNavbarItem.js 11ms
lib-next\theme\NavbarItem\index.js 4ms
lib-next\theme\NavbarItem\LocaleDropdownNavbarItem\index.js 4ms
lib-next\theme\NavbarItem\NavbarNavLink.js 4ms
lib-next\theme\NavbarItem\SearchNavbarItem.js 1ms
lib-next\theme\NavbarItem\utils.js 1ms
lib-next\theme\NotFound.js 2ms
lib-next\theme\PaginatorNavLink\index.js 2ms
lib-next\theme\prism-include-languages.js 2ms
lib-next\theme\SearchBar.js 1ms
lib-next\theme\SearchMetadata\index.js 3ms
lib-next\theme\SiteMetadata\index.js 6ms
lib-next\theme\SkipToContent\index.js 8ms
lib-next\theme\TabItem\index.js 2ms
lib-next\theme\Tabs\__tests__\index.test.js 10ms
lib-next\theme\Tabs\index.js 13ms
lib-next\theme\Tag\index.js 3ms
lib-next\theme\TagsListByLetter\index.js 3ms
lib-next\theme\TagsListInline\index.js 2ms
lib-next\theme\ThemedImage\index.js 3ms
lib-next\theme\TOC\index.js 1ms
lib-next\theme\TOCCollapsible\index.js 4ms
lib-next\theme\TOCInline\index.js 1ms
lib-next\theme\TOCItems\index.js 4ms
lib-next\translations.js 13ms
lib-next\validateThemeConfig.js 29ms
lerna info run Ran npm script 'build' in '@docusaurus/preset-classic' in 2.4s:
$ tsc
lerna success run Ran npm script 'build' in 26 packages in 34.5s:
lerna success - create-docusaurus
lerna success - @docusaurus/logger
lerna success - @docusaurus/mdx-loader
lerna success - @docusaurus/migrate
lerna success - @docusaurus/plugin-client-redirects
lerna success - @docusaurus/plugin-content-blog
lerna success - @docusaurus/plugin-content-docs
lerna success - @docusaurus/plugin-content-pages
lerna success - @docusaurus/plugin-debug
lerna success - @docusaurus/plugin-google-analytics
lerna success - @docusaurus/plugin-google-gtag
lerna success - @docusaurus/plugin-ideal-image
lerna success - @docusaurus/plugin-pwa
lerna success - @docusaurus/plugin-sitemap
lerna success - @docusaurus/preset-classic
lerna success - @docusaurus/remark-plugin-npm2yarn
lerna success - @docusaurus/theme-classic
lerna success - @docusaurus/theme-common
lerna success - @docusaurus/theme-live-codeblock
lerna success - @docusaurus/theme-search-algolia
lerna success - @docusaurus/theme-translations
lerna success - @docusaurus/utils-common
lerna success - @docusaurus/utils-validation
lerna success - @docusaurus/utils
lerna success - @docusaurus/core
lerna success - @docusaurus/lqip-loader
$ yarn workspace website start
$ docusaurus start
[INFO] Starting the development server...
E:\nodejs\docusaurus\website\docs
E:\nodejs\docusaurus\website\versioned_docs\version-2.0.0-beta.18
E:\nodejs\docusaurus\website\versioned_docs\version-2.0.0-beta.17
E:\nodejs\docusaurus\website\community
E:\nodejs\docusaurus\website\_dogfooding\docs-tests-symlink
[ERROR] Loading of version failed for version current
[ERROR] Error: The `cwd` option must be a path to a directory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: D:\scoop\apps\nodejs-lts\current\node.exe
Arguments: D:\scoop\persist\nodejs-lts\bin\node_modules\yarn\lib\cli.js start
Directory: E:\nodejs\docusaurus\website
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@Josh-Cena
Copy link
Collaborator

Thanks. Since I don't have a windows machine, could you tell me if E:\nodejs\docusaurus\website\community is supposed to be a valid path to that directory?

@danyow
Copy link
Author

danyow commented Mar 29, 2022

yes!
image

@Josh-Cena
Copy link
Collaborator

I'm still afraid you need to self-service there, unless another Windows contributor likes to step in and debug this. Thanks for understanding

@danyow
Copy link
Author

danyow commented Mar 29, 2022

Thank you, but I hope you can provide some ideas

@Josh-Cena
Copy link
Collaborator

Could you try versionMetadata.contentPath.replace('\\', '\\\\')?

@danyow
Copy link
Author

danyow commented Mar 29, 2022

I think the ossrs/srs-docs#11 (comment) It's the same question

@danyow danyow closed this as completed Mar 29, 2022
@Josh-Cena Josh-Cena removed the status: needs triage This issue has not been triaged by maintainers label Mar 30, 2022
@intellijboy
Copy link

the same problem happen to me.

@Josh-Cena
Copy link
Collaborator

@intellijboy You need to remove the fs.realpath call in the dogfooding Docusaurus config. See ossrs/srs-docs#11 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

No branches or pull requests

3 participants