You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to prove that docusaurus search local was the cause of the failed project build I setup a new docusaurus website using the create command for V2 Beta 13 and installed docusaurus search local. Changed the docusaurus config file and tried to build.
The following error was shown
$ DEBUG=1 yarn build
yarn run v1.22.15
warning ..\package.json: No license field
$ docusaurus build
[en] Creating an optimized production build...
Unable to build website for locale "en".
TypeError: (0 , utils_1.readDefaultCodeTranslationMessages) is not a function
at Object.getDefaultCodeTranslationMessages (S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@cmfcmf\docusaurus-search-local\lib\server\index.js:148:97)
at S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@docusaurus\core\lib\server\translations\translations.js:174:186
at Array.map (<anonymous>)
at getPluginsDefaultCodeTranslationMessages (S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@docusaurus\core\lib\server\translations\translations.js:174:55)
at load (S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@docusaurus\core\lib\server\index.js:240:79)
at async buildLocale (S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@docusaurus\core\lib\commands\build.js:82:19)
at async tryToBuildLocale (S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@docusaurus\core\lib\commands\build.js:34:20)
at async mapAsyncSequencial (S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@docusaurus\utils\lib\index.js:262:24)
at async build (S:\Files\VS_Code\Projects\docs_v3\my-website\node_modules\@docusaurus\core\lib\commands\build.js:70:25)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
If possible, provide a link to the source of your documentation or at least
the document/page this issue is about (if applicable). If this bug report is
about a failure that occurs while building your documentation, please find out
which document breaks the build process by building your documentation with debug
information enabled as described in the README (DEBUG=1 yarn build). If you can,
provide the document that breaks the build process as indicated by the debug messages.
Environment
Package Versions
If you use Yarn: yarn list --pattern '@docusaurus|@cmfcmf' --depth=0
If you use npm: npm list '@docusaurus/core' '@cmfcmf/docusaurus-search-local'
Bug description
Reproduction
Public Repo Link: https://github.com/astrawnuts/Docusaurus-NEW-Local-Search
Just to prove that docusaurus search local was the cause of the failed project build I setup a new docusaurus website using the create command for V2 Beta 13 and installed docusaurus search local. Changed the docusaurus config file and tried to build.
The following error was shown
If possible, provide a link to the source of your documentation or at least
the document/page this issue is about (if applicable). If this bug report is
about a failure that occurs while building your documentation, please find out
which document breaks the build process by building your documentation with debug
information enabled as described in the README (
DEBUG=1 yarn build
). If you can,provide the document that breaks the build process as indicated by the debug messages.
Environment
Package Versions
If you use Yarn:
yarn list --pattern '@docusaurus|@cmfcmf' --depth=0
If you use npm:
npm list '@docusaurus/core' '@cmfcmf/docusaurus-search-local'
Node Version
node -v
$ node -v v16.13.0
Docusaurus Environment
docusaurus.config.js
fileAdditional context
The text was updated successfully, but these errors were encountered: