docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

Failed to compile

Open azzyx opened this issue 6 years ago • 5 comments

❓ Questions and Help

Please note that this issue tracker is not a help form and this issue will be closed.

Please contact us instead. We have a few channels:

image

The development environment is windows

azzyx avatar Oct 14 '20 06:10 azzyx

Hi and thanks, this looks like a. duplicate of https://github.com/facebook/docusaurus/issues/3471 so I'm closing.

Try a folder without Chinese characters as a workaround

slorber avatar Oct 14 '20 09:10 slorber

ok, thanks, instead of the package of @docusaurus/core and @docusaurus/preset-classic version 2.0.0-alpha.65, i chose the version 2.0.0-alpha.43 , and it worked.

azzyx avatar Oct 15 '20 02:10 azzyx

Hi,

If you are linking to a file in /static folder, this windows/chinese bug is probably related to a newly introduced webpack file-loader system. You should be able to upgrade to more recent versions like alpha 56 or 58 I think.

By using a md link like [link](pathname:///myChineseFileName.pdf) you should also be able to upgrade to alpha 65, as the pathname:// prefix "disable" the webpack file-loader system.

slorber avatar Oct 15 '20 12:10 slorber

Interested to know if it works for you if you remove the Chinese chars from the filename

slorber avatar Oct 15 '20 12:10 slorber

when remove Chinese it worked

azzyx avatar Dec 15 '20 07:12 azzyx