Last active
June 12, 2020 19:48
-
-
Save johnwhitton/7ac82b9b525571fa946052bbd2fa362d to your computer and use it in GitHub Desktop.
Docusarus compile error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
johnweb website (master) $ yarn build | |
yarn run v1.22.4 | |
$ docusaurus build | |
Creating an optimized production build... | |
✔ Client | |
Compiled successfully in 23.92s | |
✖ Server | |
Compiled with some errors in 28.24s | |
ReferenceError: Buffer is not definedReferenceError: window is not defined | |
(undefined) ReferenceError: Buffer is not defined | |
at Object.<anonymous> (main:21266:20) | |
at __webpack_require__ (main:21:30) | |
at Object.<anonymous> (main:37687:26) | |
at __webpack_require__ (main:21:30) | |
at Object.<anonymous> (main:126472:30) | |
at __webpack_require__ (main:21:30) | |
at Object.<anonymous> (main:49643:18) | |
at __webpack_require__ (main:46383:30) | |
at Object.<anonymous> (main:49414:14) | |
at Object.<anonymous> (main:49637:30) | |
(undefined) ReferenceError: window is not defined | |
at Object.<anonymous> (main:76350:52) | |
at __webpack_require__ (main:21:30) | |
at Object.<anonymous> (main:46227:41) | |
at __webpack_require__ (main:21:30) | |
at Module.<anonymous> (main:31688:74) | |
at __webpack_require__ (main:21:30) | |
at main:138370:5427 | |
Error: Failed to compile with errors. | |
at /home/ec2-user/emasset-docs/website/node_modules/@docusaurus/core/lib/commands/build.js:38:24 | |
at finalCallback (/home/ec2-user/emasset-docs/website/node_modules/webpack/lib/MultiCompiler.js:254:12) | |
at /home/ec2-user/emasset-docs/website/node_modules/webpack/lib/MultiCompiler.js:277:6 | |
at done (/home/ec2-user/emasset-docs/website/node_modules/neo-async/async.js:2931:13) | |
at runCompilers (/home/ec2-user/emasset-docs/website/node_modules/webpack/lib/MultiCompiler.js:181:48) | |
at /home/ec2-user/emasset-docs/website/node_modules/webpack/lib/MultiCompiler.js:188:7 | |
at /home/ec2-user/emasset-docs/website/node_modules/webpack/lib/MultiCompiler.js:270:7 | |
at finalCallback (/home/ec2-user/emasset-docs/website/node_modules/webpack/lib/Compiler.js:257:39) | |
at /home/ec2-user/emasset-docs/website/node_modules/webpack/lib/Compiler.js:273:13 | |
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/ec2-user/emasset-docs/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1) | |
at AsyncSeriesHook.lazyCompileHook (/home/ec2-user/emasset-docs/website/node_modules/tapable/lib/Hook.js:154:20) | |
at onCompiled (/home/ec2-user/emasset-docs/website/node_modules/webpack/lib/Compiler.js:271:21) | |
at /home/ec2-user/emasset-docs/website/node_modules/webpack/lib/Compiler.js:681:15 | |
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/ec2-user/emasset-docs/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) | |
at AsyncSeriesHook.lazyCompileHook (/home/ec2-user/emasset-docs/website/node_modules/tapable/lib/Hook.js:154:20) | |
at /home/ec2-user/emasset-docs/website/node_modules/webpack/lib/Compiler.js:678:31 | |
error Command failed with exit code 1. | |
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. | |
johnweb website (master) $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment