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
❯ deno run -A npm:create-docusaurus@latest my-website classic --typescript[INFO] Creating new Docusaurus project...[INFO] Installing dependencies with npm...error: Uncaught (in promise) ReferenceError: require is not definedif (require.main !== module) {^ at file:///home/felipecrs/.cache/deno/npm/registry.npmjs.org/shelljs/0.8.5/src/exec-child.js:1:1[ERROR] Dependency installation failed.[INFO] The site directory has already been created, and you can retry by typing: `cd my-website` `npm install`
But it's likely this one requires changes on Docusaurus level to support --package-manager=deno.
It can be bypassed with --skip-install, and then the command works.
$ cd my-website
$ DENO_FUTURE=1 deno install --allow-scripts
Then:
$ deno task start? [WARNING] Something is already running on port 3000. Probably: `/home/felipecrs/.deno/bin/deno run -A npm:@docusaurus/[email protected]/docusaurus start` (pid 1573) in "/tmp/tmp.cL5qkqnI8O/my-website"Would you like to run the app on another port instead? › (Y/n)
This is a compatibility issue, because I never ran deno task start before. Even tried to reboot my machine and the issue persists.
But then, accepting a different port:
[SUCCESS] Docusaurus website is running at: http://localhost:60833/
● Client █████████████████████████ building (46%) 2/3 entries 741/816 dependencies 166/277 modules 86 active
mdx-loader › docs/tutorial-extras/translate-your-site.md
[WARNING] The image at "/tmp/tmp.cL5qkqnI8O/my-website/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg" can't be read correctly. Please ensure it's a valid image.
handle.stat is not a function
[WARNING] The image at "/tmp/tmp.cL5qkqnI8O/my-website/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg" can't be read correctly. Please ensure it's a valid image.
handle.stat is not a function
[WARNING] The image at "/tmp/tmp.cL5qkqnI8O/my-website/docs/tutorial-extras/img/localeDropdown.png" can't be read correctly. Please ensure it's a valid image.
handle.stat is not a function
[WARNING] The image at "/tmp/tmp.cL5qkqnI8O/my-website/docs/tutorial-extras/img/docsVersionDropdown.png" can't be read correctly. Please ensure i
✖ Client
Compiled with some errors in 7.87s
Error: Digest method not supported: md4
at String.replace (<anonymous>)
--------------------------
Error: Digest method not supported: md4
at String.replace (<anonymous>)
--------------------------
Error: Digest method not supported: md4
at String.replace (<anonymous>)
client (webpack 5.93.0) compiled with 3 errors
Version: Deno 1.45.2
The first:
npm:create-docusaurus
ReferenceError: require is not defined #22732But it's likely this one requires changes on Docusaurus level to support
--package-manager=deno
.It can be bypassed with
--skip-install
, and then the command works.Then:
This is a compatibility issue, because I never ran
deno task start
before. Even tried to reboot my machine and the issue persists.But then, accepting a different port:
Looks like one of these were already reported:
But
Digest method not supported: md4
is new, I believe.The text was updated successfully, but these errors were encountered: